net.sf.mmm.util.pojo.descriptor.api
Interface PojoDescriptorBuilder

All Known Implementing Classes:
AbstractPojoDescriptorBuilder, PojoDescriptorBuilderImpl

public interface PojoDescriptorBuilder

This is the interface used to get (or create) the descriptor for a given Pojo.
This functionality is an advanced alternative to Introspector or commons-beanutils.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
PojoDescriptor

Method Summary
<POJO> PojoDescriptor<POJO>
getDescriptor(Class<POJO> pojoClass)
          This method gets (or creates) the descriptor for the given pojoClass.
<POJO> PojoDescriptor<POJO>
getDescriptor(GenericType<POJO> pojoType)
          This method gets (or creates) the descriptor for the given pojoType.
 PojoDescriptor<?> 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.
 

Method Detail

getDescriptor

<POJO> PojoDescriptor<POJO> getDescriptor(Class<POJO> pojoClass)
This method gets (or creates) the descriptor for the given pojoClass.

Type Parameters:
POJO - is the templated type of the pojoType.
Parameters:
pojoClass - is the Class reflecting the Pojo to introspect.
Returns:
the descriptor used to get information about the properties of the given pojoClass.

getDescriptor

PojoDescriptor<?> getDescriptor(Type pojoType)
This method gets (or creates) the descriptor for the given pojoType.

Parameters:
pojoType - is the Type reflecting the Pojo to introspect.
Returns:
the descriptor used to get information about the properties of the given pojoType.
See Also:
getDescriptor(GenericType)

getDescriptor

<POJO> PojoDescriptor<POJO> getDescriptor(GenericType<POJO> pojoType)
This method gets (or creates) the descriptor for the given pojoType.

Type Parameters:
POJO - is the templated type of the pojoType.
Parameters:
pojoType - is the GenericType reflecting the Pojo to introspect.
Returns:
the descriptor used to get information about the properties of the given pojoType.

pojo2Map

Map<String,Object> pojo2Map(Object pojo)
This method creates a lazy, immutable Map reflecting the given Pojo.
ATTENTION:
The Map may be simple.

Parameters:
pojo - is the Pojo to convert.
Returns:
the Map reflecting the given Pojo.
Since:
1.1.1
See Also:
PojoPathNavigator.pojo2Map(Object)


Copyright © 2001-2010 mmm-Team. All Rights Reserved.