Class BasicClassIntrospector
- java.lang.Object
-
- org.codehaus.jackson.map.ClassIntrospector<BasicBeanDescription>
-
- org.codehaus.jackson.map.introspect.BasicClassIntrospector
-
public class BasicClassIntrospector extends ClassIntrospector<BasicBeanDescription>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicClassIntrospector.GetterMethodFilter
Deprecated.Since 1.9 just don't usestatic class
BasicClassIntrospector.SetterAndGetterMethodFilter
Deprecated.Since 1.9 just don't usestatic class
BasicClassIntrospector.SetterMethodFilter
Deprecated.Since 1.9 just don't use-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.ClassIntrospector
ClassIntrospector.MixInResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected static BasicBeanDescription
BOOLEAN_DESC
static BasicClassIntrospector.GetterMethodFilter
DEFAULT_GETTER_FILTER
Deprecated.Since 1.9 just don't usestatic BasicClassIntrospector.SetterAndGetterMethodFilter
DEFAULT_SETTER_AND_GETTER_FILTER
Deprecated.Since 1.9 just don't usestatic BasicClassIntrospector.SetterMethodFilter
DEFAULT_SETTER_FILTER
Deprecated.Since 1.9 just don't usestatic BasicClassIntrospector
instance
protected static BasicBeanDescription
INT_DESC
protected static BasicBeanDescription
LONG_DESC
protected static MethodFilter
MINIMAL_FILTER
protected static BasicBeanDescription
STRING_DESC
-
Constructor Summary
Constructors Constructor Description BasicClassIntrospector()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected BasicBeanDescription
_findCachedDesc(JavaType type)
Method called to see if type is one of core JDK types that we have cached for efficiency.AnnotatedClass
classWithCreators(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
POJOPropertiesCollector
collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)
protected POJOPropertiesCollector
constructPropertyCollector(MapperConfig<?> config, AnnotatedClass ac, JavaType type, boolean forSerialization)
Overridable method called for creatingPOJOPropertiesCollector
instance to use; override is needed if a custom sub-class is to be used.BasicBeanDescription
forClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.BasicBeanDescription
forCreation(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsBasicBeanDescription
forDeserialization(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has all information needed for deserialization purposes.BasicBeanDescription
forDirectClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.BasicBeanDescription
forSerialization(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has all information needed for serialization purposes.protected MethodFilter
getDeserializationMethodFilter(DeserializationConfig cfg)
Deprecated.Since 1.9 just don't useprotected MethodFilter
getSerializationMethodFilter(SerializationConfig cfg)
Deprecated.Since 1.9 just don't use-
Methods inherited from class org.codehaus.jackson.map.ClassIntrospector
forClassAnnotations, forDirectClassAnnotations
-
-
-
-
Field Detail
-
STRING_DESC
protected static final BasicBeanDescription STRING_DESC
-
BOOLEAN_DESC
protected static final BasicBeanDescription BOOLEAN_DESC
-
INT_DESC
protected static final BasicBeanDescription INT_DESC
-
LONG_DESC
protected static final BasicBeanDescription LONG_DESC
-
DEFAULT_GETTER_FILTER
@Deprecated public static final BasicClassIntrospector.GetterMethodFilter DEFAULT_GETTER_FILTER
Deprecated.Since 1.9 just don't use- Since:
- 1.8
-
DEFAULT_SETTER_FILTER
@Deprecated public static final BasicClassIntrospector.SetterMethodFilter DEFAULT_SETTER_FILTER
Deprecated.Since 1.9 just don't use- Since:
- 1.8
-
DEFAULT_SETTER_AND_GETTER_FILTER
@Deprecated public static final BasicClassIntrospector.SetterAndGetterMethodFilter DEFAULT_SETTER_AND_GETTER_FILTER
Deprecated.Since 1.9 just don't use- Since:
- 1.8
-
MINIMAL_FILTER
protected static final MethodFilter MINIMAL_FILTER
-
instance
public static final BasicClassIntrospector instance
-
-
Method Detail
-
forSerialization
public BasicBeanDescription forSerialization(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has all information needed for serialization purposes.- Specified by:
forSerialization
in classClassIntrospector<BasicBeanDescription>
-
forDeserialization
public BasicBeanDescription forDeserialization(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has all information needed for deserialization purposes.- Specified by:
forDeserialization
in classClassIntrospector<BasicBeanDescription>
-
forCreation
public BasicBeanDescription forCreation(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods- Specified by:
forCreation
in classClassIntrospector<BasicBeanDescription>
-
forClassAnnotations
public BasicBeanDescription forClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.- Specified by:
forClassAnnotations
in classClassIntrospector<BasicBeanDescription>
-
forDirectClassAnnotations
public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.- Specified by:
forDirectClassAnnotations
in classClassIntrospector<BasicBeanDescription>
-
collectProperties
public POJOPropertiesCollector collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)
- Since:
- 1.9
-
constructPropertyCollector
protected POJOPropertiesCollector constructPropertyCollector(MapperConfig<?> config, AnnotatedClass ac, JavaType type, boolean forSerialization)
Overridable method called for creatingPOJOPropertiesCollector
instance to use; override is needed if a custom sub-class is to be used.- Since:
- 1.9
-
classWithCreators
public AnnotatedClass classWithCreators(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
- Since:
- 1.9
-
_findCachedDesc
protected BasicBeanDescription _findCachedDesc(JavaType type)
Method called to see if type is one of core JDK types that we have cached for efficiency.- Since:
- 1.9
-
getSerializationMethodFilter
@Deprecated protected MethodFilter getSerializationMethodFilter(SerializationConfig cfg)
Deprecated.Since 1.9 just don't useHelper method for getting access to filter that only guarantees that methods used for serialization are to be included.
-
getDeserializationMethodFilter
@Deprecated protected MethodFilter getDeserializationMethodFilter(DeserializationConfig cfg)
Deprecated.Since 1.9 just don't useHelper method for getting access to filter that only guarantees that methods used for deserialization are to be included.
-
-