Package | Description |
---|---|
org.codehaus.jackson.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
org.codehaus.jackson.map.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.util |
Utility classes for Mapper package.
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Class<? extends AnnotationIntrospector> |
MapperConfigurator._jaxbIntrospectorClass |
To support optional dependency to Jackson-XC module (needed if and
when JAXB annotations are used for configuration)
|
Modifier and Type | Method | Description |
---|---|---|
protected AnnotationIntrospector |
MapperConfigurator._resolveIntrospector(Annotations ann) |
|
protected AnnotationIntrospector |
MapperConfigurator._resolveIntrospectors(Annotations[] annotationsToUse) |
Modifier and Type | Class | Description |
---|---|---|
static class |
AnnotationIntrospector.Pair |
Helper class that allows using 2 introspectors such that one
introspector acts as the primary one to use; and second one
as a fallback used if the primary does not provide conclusive
or useful result for a method.
|
Modifier and Type | Field | Description |
---|---|---|
protected AnnotationIntrospector |
MapperConfig.Base._annotationIntrospector |
Introspector used for accessing annotation value based configuration.
|
protected AnnotationIntrospector |
AnnotationIntrospector.Pair._primary |
|
protected AnnotationIntrospector |
AnnotationIntrospector.Pair._secondary |
|
protected static AnnotationIntrospector |
ObjectMapper.DEFAULT_ANNOTATION_INTROSPECTOR |
Modifier and Type | Method | Description |
---|---|---|
static AnnotationIntrospector |
AnnotationIntrospector.Pair.create(AnnotationIntrospector primary,
AnnotationIntrospector secondary) |
Helper method for constructing a Pair from two given introspectors (if
neither is null); or returning non-null introspector if one is null
(and return just null if both are null)
|
AnnotationIntrospector |
DeserializationConfig.getAnnotationIntrospector() |
Method for getting
AnnotationIntrospector configured
to introspect annotation values used for configuration. |
AnnotationIntrospector |
MapperConfig.Base.getAnnotationIntrospector() |
|
AnnotationIntrospector |
MapperConfig.getAnnotationIntrospector() |
Method for getting
AnnotationIntrospector configured
to introspect annotation values used for configuration. |
AnnotationIntrospector |
SerializationConfig.getAnnotationIntrospector() |
|
static AnnotationIntrospector |
AnnotationIntrospector.nopInstance() |
Factory method for accessing "no operation" implementation
of introspector: instance that will never find any annotation-based
configuration.
|
static AnnotationIntrospector |
AnnotationIntrospector.pair(AnnotationIntrospector a1,
AnnotationIntrospector a2) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.allIntrospectors() |
Method that can be used to collect all "real" introspectors that
this introspector contains, if any; or this introspector
if it is not a container.
|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.allIntrospectors(java.util.Collection<AnnotationIntrospector> result) |
Method that can be used to collect all "real" introspectors that
this introspector contains, if any; or this introspector
if it is not a container.
|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.Pair.allIntrospectors() |
|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.Pair.allIntrospectors(java.util.Collection<AnnotationIntrospector> result) |
Modifier and Type | Method | Description |
---|---|---|
void |
MapperConfig.appendAnnotationIntrospector(AnnotationIntrospector introspector) |
Deprecated.
Since 1.9 use
MapperConfig.withAppendedAnnotationIntrospector(AnnotationIntrospector) instead;
this method is deprecated as it changes state, preventing immutability of instances |
void |
Module.SetupContext.appendAnnotationIntrospector(AnnotationIntrospector ai) |
Method for registering specified
AnnotationIntrospector as the lowest
priority introspector, chained with existing introspector(s) and called
as fallback for cases not otherwise handled. |
static AnnotationIntrospector |
AnnotationIntrospector.Pair.create(AnnotationIntrospector primary,
AnnotationIntrospector secondary) |
Helper method for constructing a Pair from two given introspectors (if
neither is null); or returning non-null introspector if one is null
(and return just null if both are null)
|
void |
MapperConfig.insertAnnotationIntrospector(AnnotationIntrospector introspector) |
Deprecated.
Since 1.9 use
MapperConfig.withInsertedAnnotationIntrospector(AnnotationIntrospector) instead;
this method is deprecated as it changes state, preventing immutability of instances |
void |
Module.SetupContext.insertAnnotationIntrospector(AnnotationIntrospector ai) |
Method for registering specified
AnnotationIntrospector as the highest
priority introspector (will be chained with existing introspector(s) which
will be used as fallbacks for cases this introspector does not handle) |
static AnnotationIntrospector |
AnnotationIntrospector.pair(AnnotationIntrospector a1,
AnnotationIntrospector a2) |
|
void |
MapperConfig.setAnnotationIntrospector(AnnotationIntrospector ai) |
Deprecated.
Since 1.8, use either
MapperConfig.withAnnotationIntrospector(AnnotationIntrospector) or
Module API instead |
ObjectMapper |
ObjectMapper.setAnnotationIntrospector(AnnotationIntrospector ai) |
Method for changing
AnnotationIntrospector used by this
mapper instance for both serialization and deserialization |
DeserializationConfig |
DeserializationConfig.withAnnotationIntrospector(AnnotationIntrospector ai) |
|
MapperConfig.Base |
MapperConfig.Base.withAnnotationIntrospector(AnnotationIntrospector ai) |
|
abstract T |
MapperConfig.withAnnotationIntrospector(AnnotationIntrospector ai) |
Method for constructing and returning a new instance with different
AnnotationIntrospector to use (replacing old one). |
SerializationConfig |
SerializationConfig.withAnnotationIntrospector(AnnotationIntrospector ai) |
|
DeserializationConfig |
DeserializationConfig.withAppendedAnnotationIntrospector(AnnotationIntrospector ai) |
|
MapperConfig.Base |
MapperConfig.Base.withAppendedAnnotationIntrospector(AnnotationIntrospector ai) |
|
abstract T |
MapperConfig.withAppendedAnnotationIntrospector(AnnotationIntrospector introspector) |
Method for constructing and returning a new instance with additional
AnnotationIntrospector appended (as the lowest priority one) |
SerializationConfig |
SerializationConfig.withAppendedAnnotationIntrospector(AnnotationIntrospector ai) |
|
DeserializationConfig |
DeserializationConfig.withInsertedAnnotationIntrospector(AnnotationIntrospector ai) |
|
MapperConfig.Base |
MapperConfig.Base.withInsertedAnnotationIntrospector(AnnotationIntrospector ai) |
|
abstract T |
MapperConfig.withInsertedAnnotationIntrospector(AnnotationIntrospector introspector) |
Method for constructing and returning a new instance with additional
AnnotationIntrospector inserted (as the highest priority one) |
SerializationConfig |
SerializationConfig.withInsertedAnnotationIntrospector(AnnotationIntrospector ai) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.allIntrospectors(java.util.Collection<AnnotationIntrospector> result) |
Method that can be used to collect all "real" introspectors that
this introspector contains, if any; or this introspector
if it is not a container.
|
java.util.Collection<AnnotationIntrospector> |
AnnotationIntrospector.Pair.allIntrospectors(java.util.Collection<AnnotationIntrospector> result) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
BeanDeserializerFactory._addDeserializerConstructors(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators) |
|
protected void |
BeanDeserializerFactory._addDeserializerFactoryMethods(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators) |
Modifier and Type | Class | Description |
---|---|---|
class |
JacksonAnnotationIntrospector |
AnnotationIntrospector implementation that handles standard
Jackson annotations. |
class |
NopAnnotationIntrospector |
Dummy, "no-operation" implementation of
AnnotationIntrospector . |
Modifier and Type | Field | Description |
---|---|---|
protected AnnotationIntrospector |
AnnotatedClass._annotationIntrospector |
Filter used to determine which annotations to gather; used
to optimize things so that unnecessary annotations are
ignored.
|
protected AnnotationIntrospector |
BasicBeanDescription._annotationIntrospector |
|
protected AnnotationIntrospector |
POJOPropertiesCollector._annotationIntrospector |
Modifier and Type | Method | Description |
---|---|---|
AnnotationIntrospector |
POJOPropertiesCollector.getAnnotationIntrospector() |
Modifier and Type | Method | Description |
---|---|---|
static AnnotatedClass |
AnnotatedClass.construct(java.lang.Class<?> cls,
AnnotationIntrospector aintr,
ClassIntrospector.MixInResolver mir) |
Factory method that instantiates an instance.
|
static AnnotatedClass |
AnnotatedClass.constructWithoutSuperTypes(java.lang.Class<?> cls,
AnnotationIntrospector aintr,
ClassIntrospector.MixInResolver mir) |
Method similar to
AnnotatedClass.construct(java.lang.Class<?>, org.codehaus.jackson.map.AnnotationIntrospector, org.codehaus.jackson.map.ClassIntrospector.MixInResolver) , but that will NOT include
information from supertypes; only class itself and any direct
mix-ins it may have. |
Modifier and Type | Method | Description |
---|---|---|
abstract java.util.Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedClass basetype,
MapperConfig<?> config,
AnnotationIntrospector ai) |
Method for finding out all reachable subtypes for given type.
|
abstract java.util.Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai) |
Method for finding out all reachable subtypes for a property specified
by given element (method or field)
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
StdSubtypeResolver._collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
java.util.HashMap<NamedType,NamedType> collectedSubtypes) |
Method called to find subtypes for a specific type (class)
|
java.util.Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai) |
|
java.util.Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai) |
Modifier and Type | Field | Description |
---|---|---|
protected AnnotationIntrospector |
PropertyBuilder._annotationIntrospector |
Modifier and Type | Method | Description |
---|---|---|
static EnumValues |
EnumValues.construct(java.lang.Class<java.lang.Enum<?>> enumClass,
AnnotationIntrospector intr) |
|
static <ET extends java.lang.Enum<ET>> |
EnumResolver.constructFor(java.lang.Class<ET> enumCls,
AnnotationIntrospector ai) |
Factory method for constructing resolver that maps from Enum.name() into
Enum value
|
static EnumValues |
EnumValues.constructFromName(java.lang.Class<java.lang.Enum<?>> enumClass,
AnnotationIntrospector intr) |
|
static EnumValues |
EnumValues.constructFromToString(java.lang.Class<java.lang.Enum<?>> enumClass,
AnnotationIntrospector intr) |
|
static EnumResolver<?> |
EnumResolver.constructUnsafe(java.lang.Class<?> rawEnumCls,
AnnotationIntrospector ai) |
This method is needed because of the dynamic nature of constructing Enum
resolvers.
|
Modifier and Type | Class | Description |
---|---|---|
class |
JaxbAnnotationIntrospector |
Annotation introspector that leverages JAXB annotations where applicable to JSON mapping.
|