Class MineplexJacksonModule

java.lang.Object
com.fasterxml.jackson.databind.Module
com.mineplex.studio.jackson.MineplexJacksonModule
All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned

public class MineplexJacksonModule extends com.fasterxml.jackson.databind.Module
Module that registers serializers and deserializers for Bukkit classes.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module

    com.fasterxml.jackson.databind.Module.SetupContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method that returns a display that can be used by Jackson for informational purposes, as well as in associating extensions with module that provides them.
    void
    setupModule(com.fasterxml.jackson.databind.Module.SetupContext setupContext)
    Method called by ObjectMapper when module is registered.
    com.fasterxml.jackson.core.Version
    Method that returns version of this module.

    Methods inherited from class com.fasterxml.jackson.databind.Module

    getDependencies, getTypeId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MineplexJacksonModule

      public MineplexJacksonModule()
  • Method Details

    • getModuleName

      public String getModuleName()
      Method that returns a display that can be used by Jackson for informational purposes, as well as in associating extensions with module that provides them.
      Specified by:
      getModuleName in class com.fasterxml.jackson.databind.Module
    • version

      public com.fasterxml.jackson.core.Version version()
      Method that returns version of this module. Can be used by Jackson for informational purposes.
      Specified by:
      version in interface com.fasterxml.jackson.core.Versioned
      Specified by:
      version in class com.fasterxml.jackson.databind.Module
    • setupModule

      public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext setupContext)
      Method called by ObjectMapper when module is registered. It is called to let module register functionality it provides, using callback methods passed-in context object exposes.
      Specified by:
      setupModule in class com.fasterxml.jackson.databind.Module