public abstract class AbstractPojoDescriptorBuilder extends AbstractLoggableComponent implements PojoDescriptorBuilder
PojoDescriptorBuilder interface.| Modifier and Type | Field and Description |
|---|---|
private Map<GenericType<?>,PojoDescriptorImpl<?>> |
pojoMap |
| Constructor and Description |
|---|
AbstractPojoDescriptorBuilder(MapFactory mapFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract <POJO> PojoDescriptorImpl<POJO> |
createDescriptor(GenericType<POJO> pojoType)
This method creates the
pojo descriptor for the given
pojoType. |
<POJO> PojoDescriptorImpl<POJO> |
getDescriptor(Class<POJO> pojoClass)
This method gets (or creates) the
descriptor for the given pojoClass. |
<POJO> PojoDescriptorImpl<POJO> |
getDescriptor(GenericType<POJO> pojoType)
This method gets (or creates) the
descriptor for the given pojoType. |
PojoDescriptorImpl<?> |
getDescriptor(Type pojoType)
This method gets (or creates) the
descriptor for the given pojoType. |
protected abstract ReflectionUtilLimited |
getReflectionUtil()
This method gets the instance of
ReflectionUtilLimited. |
Map<String,Object> |
pojo2Map(Object pojo)
|
createLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeprivate final Map<GenericType<?>,PojoDescriptorImpl<?>> pojoMap
public AbstractPojoDescriptorBuilder(MapFactory mapFactory)
mapFactory - the factory used to create the descriptor-cache.protected abstract ReflectionUtilLimited getReflectionUtil()
ReflectionUtilLimited.ReflectionUtilLimited.public <POJO> PojoDescriptorImpl<POJO> getDescriptor(Class<POJO> pojoClass)
PojoDescriptorBuilderdescriptor for the given pojoClass.getDescriptor in interface PojoDescriptorBuilderPOJO - is the templated type of the pojoType.pojoClass - is the Class reflecting the Pojo to introspect.pojoClass.public PojoDescriptorImpl<?> getDescriptor(Type pojoType)
PojoDescriptorBuilderdescriptor for the given pojoType.getDescriptor in interface PojoDescriptorBuilderpojoType - is the Type reflecting the Pojo to introspect.pojoType.PojoDescriptorBuilder.getDescriptor(GenericType)public <POJO> PojoDescriptorImpl<POJO> getDescriptor(GenericType<POJO> pojoType)
PojoDescriptorBuilderdescriptor for the given pojoType.getDescriptor in interface PojoDescriptorBuilderPOJO - is the templated type of the pojoType.pojoType - is the GenericType reflecting the Pojo to introspect.pojoType.protected abstract <POJO> PojoDescriptorImpl<POJO> createDescriptor(GenericType<POJO> pojoType)
pojo descriptor for the given
pojoType.POJO - is the templated type of the pojoType.pojoType - is the GenericType reflecting the Pojo.Pojo.PojoDescriptorBuilder.getDescriptor(java.lang.Class)public Map<String,Object> pojo2Map(Object pojo)
PojoDescriptorBuilderMap reflecting the given Pojo. Map may be simple.pojo2Map in interface PojoDescriptorBuilderpojo - is the Pojo to convert.Map reflecting the given Pojo.PojoPathNavigator.pojo2Map(Object)Copyright © 2001–2016 mmm-Team. All rights reserved.