|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapperConfig<T extends MapperConfig<T>>
Interface that defines functionality accessible through both serialization and deserialization configuration objects; accessors to mode-independent configuration settings and such.
Method Summary | |
---|---|
void |
addMixInAnnotations(Class<?> target,
Class<?> mixinSource)
Method to use for adding mix-in annotations to use for augmenting specified class or interface. |
T |
createUnshared(TypeResolverBuilder<?> typer,
VisibilityChecker<?> vc)
Method to use for constructing an instance that is not shared between multiple operations but only used for a single one. |
Class<?> |
findMixInClassFor(Class<?> cls)
Method that will check if there are "mix-in" classes (with mix-in annotations) for given class |
void |
fromAnnotations(Class<?> cls)
Method that checks class annotations that the argument Object has, and modifies settings of this configuration object accordingly, similar to how those annotations would affect actual value classes annotated with them, but with global scope. |
AnnotationIntrospector |
getAnnotationIntrospector()
|
TypeResolverBuilder<?> |
getDefaultTyper(JavaType baseType)
Method called to locate a type info handler for types that do not have one explicitly declared via annotations (or other configuration). |
VisibilityChecker<?> |
getDefaultVisibilityChecker()
Accessor for object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). |
void |
setAnnotationIntrospector(AnnotationIntrospector introspector)
|
void |
setIntrospector(ClassIntrospector<? extends BeanDescription> i)
|
void |
setMixInAnnotations(Map<Class<?>,Class<?>> mixins)
Method to use for defining mix-in annotations to use for augmenting annotations that processable (serializable / deserializable) classes have. |
Method Detail |
---|
void fromAnnotations(Class<?> cls)
T createUnshared(TypeResolverBuilder<?> typer, VisibilityChecker<?> vc)
AnnotationIntrospector getAnnotationIntrospector()
void setAnnotationIntrospector(AnnotationIntrospector introspector)
void setIntrospector(ClassIntrospector<? extends BeanDescription> i)
void setMixInAnnotations(Map<Class<?>,Class<?>> mixins)
void addMixInAnnotations(Class<?> target, Class<?> mixinSource)
mixinSource
are taken to override annotations
that target
(or its supertypes) has.
target
- Class (or interface) whose annotations to effectively overridemixinSource
- Class (or interface) whose annotations are to
be "added" to target's annotations, overriding as necessaryClass<?> findMixInClassFor(Class<?> cls)
findMixInClassFor
in interface ClassIntrospector.MixInResolver
TypeResolverBuilder<?> getDefaultTyper(JavaType baseType)
VisibilityChecker<?> getDefaultVisibilityChecker()
JsonAutoDetect
annotation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |