|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.AbstractTypeResolver
org.codehaus.jackson.mrbean.AbstractTypeMaterializer
public class AbstractTypeMaterializer
Nifty class for pulling implementations of classes out of thin air.
... friends call him Mister Bean... :-)
| Nested Class Summary | |
|---|---|
static class |
AbstractTypeMaterializer.Feature
Enumeration that defines togglable features that guide the serialization feature. |
| Field Summary | |
|---|---|
protected org.codehaus.jackson.mrbean.AbstractTypeMaterializer.MyClassLoader |
_classLoader
We will use per-materializer class loader for now; would be nice to find a way to reduce number of class loaders (and hence number of generated classes!) constructed... |
protected String |
_defaultPackage
Package name to use as prefix for generated classes. |
protected int |
_featureFlags
Bit set that contains all enabled features |
protected static int |
DEFAULT_FEATURE_FLAGS
Bitfield (set of flags) of all Features that are enabled by default. |
static String |
DEFAULT_PACKAGE_FOR_GENERATED
Default package to use for generated classes. |
| Constructor Summary | |
|---|---|
AbstractTypeMaterializer()
|
|
AbstractTypeMaterializer(ClassLoader parentClassLoader)
|
|
| Method Summary | |
|---|---|
void |
disable(AbstractTypeMaterializer.Feature f)
Method for disabling specified feature. |
void |
enable(AbstractTypeMaterializer.Feature f)
Method for enabling specified feature. |
boolean |
isEnabled(AbstractTypeMaterializer.Feature f)
Method for checking whether given feature is enabled or not |
protected Class<?> |
materializeClass(Class<?> cls)
|
JavaType |
resolveAbstractType(DeserializationConfig config,
JavaType type)
Method called to try to resolve an abstract type into concrete type, usually for purposes of deserializing. |
void |
set(AbstractTypeMaterializer.Feature f,
boolean state)
Method for enabling or disabling specified feature. |
void |
setDefaultPackage(String defPkg)
|
Version |
version()
Method that will return version information stored in and read from jar that contains this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int DEFAULT_FEATURE_FLAGS
public static final String DEFAULT_PACKAGE_FOR_GENERATED
protected final org.codehaus.jackson.mrbean.AbstractTypeMaterializer.MyClassLoader _classLoader
protected int _featureFlags
protected String _defaultPackage
| Constructor Detail |
|---|
public AbstractTypeMaterializer()
public AbstractTypeMaterializer(ClassLoader parentClassLoader)
| Method Detail |
|---|
public Version version()
version in interface Versionedpublic final boolean isEnabled(AbstractTypeMaterializer.Feature f)
public void enable(AbstractTypeMaterializer.Feature f)
public void disable(AbstractTypeMaterializer.Feature f)
public void set(AbstractTypeMaterializer.Feature f,
boolean state)
public void setDefaultPackage(String defPkg)
public JavaType resolveAbstractType(DeserializationConfig config,
JavaType type)
AbstractTypeResolver
resolveAbstractType in class AbstractTypeResolverconfig - Deserialization configuration in usetype - Abstract type (with generic type parameters if any)
to resolve
protected Class<?> materializeClass(Class<?> cls)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||