|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.pojo.descriptor.base.AbstractPojoDescriptorBuilder
public abstract class AbstractPojoDescriptorBuilder
This is the abstract base-implementation of the PojoDescriptorBuilder
interface.
| Field Summary | |
|---|---|
private Map<GenericType<?>,PojoDescriptorImpl<?>> |
pojoMap
|
| Constructor Summary | |
|---|---|
AbstractPojoDescriptorBuilder()
The constructor. |
|
AbstractPojoDescriptorBuilder(MapFactory mapFactory)
The constructor. |
|
| Method Summary | ||
|---|---|---|
protected abstract
|
createDescriptor(GenericType<POJO> pojoType)
This method creates the pojo descriptor
for the given pojoType. |
|
protected abstract PojoDescriptorDependencies |
getDependencies()
This method gets the required dependencies. |
|
|
getDescriptor(Class<POJO> pojoClass)
This method gets (or creates) the descriptor for the
given pojoClass. |
|
|
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. |
|
Map<String,Object> |
pojo2Map(Object pojo)
This method creates a lazy, immutable Map reflecting the given
Pojo. |
|
| Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent |
|---|
doInitialize, getLogger, setLogger |
| Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent |
|---|
doInitialized, getInitializationState, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Map<GenericType<?>,PojoDescriptorImpl<?>> pojoMap
getDescriptor(Class)| Constructor Detail |
|---|
public AbstractPojoDescriptorBuilder()
public AbstractPojoDescriptorBuilder(MapFactory mapFactory)
mapFactory - the factory used to create the
descriptor-cache.| Method Detail |
|---|
protected abstract PojoDescriptorDependencies getDependencies()
PojoDescriptorDependencies.public <POJO> PojoDescriptorImpl<POJO> getDescriptor(Class<POJO> pojoClass)
descriptor 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)
descriptor 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)
descriptor 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)
Map 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||