public class PropertyMapperFactory
extends java.lang.Object
PropertyMapper
instances based on a Property
and a bean.Modifier and Type | Class and Description |
---|---|
static interface |
PropertyMapperFactory.Handler
The
PropertyMapperFactory contains a set of so-called handlers. |
Constructor and Description |
---|
PropertyMapperFactory()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(java.lang.Class<? extends Property> propertyType,
PropertyMapperFactory.Handler pHandler)
Adds a new handler, which is responsible for the given annotation class.
|
static PropertyMapperFactory |
getInstance()
Returns the default
PropertyMapperFactory . |
PropertyMapper |
getMapperFor(RegistryBean bean,
Property property)
Retrieves
PropertyMapper for a bean method and property. |
public static PropertyMapperFactory getInstance()
PropertyMapperFactory
.PropertyMapperFactory
instancepublic PropertyMapper getMapperFor(RegistryBean bean, Property property) throws MappingException
PropertyMapper
for a bean method and property.bean
- The RegistryBean
objectproperty
- The Property
objectPropertyMapper
for the given bean and propertyMappingException
- If an error occurs while retrieving the property mapperpublic void addHandler(java.lang.Class<? extends Property> propertyType, PropertyMapperFactory.Handler pHandler)
propertyType
- The property type Class
pHandler
- The PropertyMapperFactory.Handler
to be added for the given property type