org.codehaus.jackson.map.introspect
Class BasicClassIntrospector

java.lang.Object
  extended by org.codehaus.jackson.map.ClassIntrospector<BasicBeanDescription>
      extended by org.codehaus.jackson.map.introspect.BasicClassIntrospector

public class BasicClassIntrospector
extends ClassIntrospector<BasicBeanDescription>


Nested Class Summary
static class BasicClassIntrospector.GetterMethodFilter
          Filter used to only include methods that have signature that is compatible with "getters": take no arguments, are non-static, and return something.
static class BasicClassIntrospector.SetterAndGetterMethodFilter
          Filter used if some getters (namely, once needed for "setterless collection injection") are also needed, not just setters.
static class BasicClassIntrospector.SetterMethodFilter
          Filter used to only include methods that have signature that is compatible with "setters": take one and only argument and are non-static.
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.ClassIntrospector
ClassIntrospector.MixInResolver
 
Field Summary
static BasicClassIntrospector instance
           
 
Constructor Summary
BasicClassIntrospector()
           
 
Method Summary
 BasicBeanDescription forClassAnnotations(MapperConfig cfg, Class<?> c, ClassIntrospector.MixInResolver r)
          Factory method that constructs an introspector that only has information regarding annotations class itself has, but nothing on methods or constructors.
 BasicBeanDescription forCreation(DeserializationConfig cfg, Class<?> c, 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 methods
 BasicBeanDescription forDeserialization(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)
          Factory method that constructs an introspector that has all information needed for deserialization purposes.
 BasicBeanDescription forSerialization(SerializationConfig cfg, Class<?> c, ClassIntrospector.MixInResolver r)
          Factory method that constructs an introspector that has all information needed for serialization purposes.
protected  MethodFilter getDeserializationMethodFilter(DeserializationConfig cfg)
          Helper method for getting access to filter that only guarantees that methods used for deserialization are to be included.
protected  MethodFilter getSerializationMethodFilter(SerializationConfig cfg)
          Helper method for getting access to filter that only guarantees that methods used for serialization are to be included.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final BasicClassIntrospector instance
Constructor Detail

BasicClassIntrospector

public BasicClassIntrospector()
Method Detail

forSerialization

public BasicBeanDescription forSerialization(SerializationConfig cfg,
                                             Class<?> c,
                                             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 class ClassIntrospector<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 class ClassIntrospector<BasicBeanDescription>

forCreation

public BasicBeanDescription forCreation(DeserializationConfig cfg,
                                        Class<?> c,
                                        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 class ClassIntrospector<BasicBeanDescription>

forClassAnnotations

public BasicBeanDescription forClassAnnotations(MapperConfig cfg,
                                                Class<?> c,
                                                ClassIntrospector.MixInResolver r)
Description copied from class: ClassIntrospector
Factory method that constructs an introspector that only has information regarding annotations class itself has, but nothing on methods or constructors.

Specified by:
forClassAnnotations in class ClassIntrospector<BasicBeanDescription>

getSerializationMethodFilter

protected MethodFilter getSerializationMethodFilter(SerializationConfig cfg)
Helper method for getting access to filter that only guarantees that methods used for serialization are to be included.


getDeserializationMethodFilter

protected MethodFilter getDeserializationMethodFilter(DeserializationConfig cfg)
Helper method for getting access to filter that only guarantees that methods used for deserialization are to be included.