Example usage for Java com.fasterxml.jackson.databind.module SimpleModule fields, constructors, methods, implement or subclass
The text is from its open source code.
SimpleModule() Constructors that should only be used for non-reusable convenience modules used by app code: "real" modules should use actual name and version number information. | |
SimpleModule(String name, Version version) Constructor to use for actual reusable modules. | |
SimpleModule(String name) Convenience constructor that will default version to Version#unknownVersion() . | |
SimpleModule(Version version) Convenience constructor that will use specified Version, including name from Version#getArtifactId() |
SimpleModule | addAbstractTypeMapping(Class Lazily-constructed resolver used for storing mappings from abstract classes to more specific implementing classes (which may be abstract or concrete) |
SimpleModule | addDeserializer(Class |
SimpleModule | addKeyDeserializer(Class> type, KeyDeserializer deser) |
SimpleModule | addKeySerializer(Class extends T> type, JsonSerializer |
SimpleModule | addSerializer(Class extends T> type, JsonSerializer |
SimpleModule | addSerializer(JsonSerializer> ser) |
void | setAbstractTypes(SimpleAbstractTypeResolver atr) Resets currently configured abstract type mappings |
SimpleModule | setDeserializerModifier(BeanDeserializerModifier mod) |
SimpleModule | setMixInAnnotation(Class> targetType, Class> mixinClass) Method for specifying that annotations define by mixinClass should be "mixed in" with annotations that targetType has (as if they were directly included on it!). |
SimpleModule | setSerializerModifier(BeanSerializerModifier mod) |
void | setupModule(SetupContext context) Standard implementation handles registration of all configured customizations: it is important that sub-classes call this implementation (usually before additional custom logic) if they choose to override it; otherwise customizations will not be registered. |