com.softwareag.centrasite.appl.framework.persistence.mapper
Class PropertyMapperFactory

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.PropertyMapperFactory

public class PropertyMapperFactory
extends java.lang.Object

Factory for creating PropertyMapper instances based on a Property and a bean.


Nested Class Summary
static interface PropertyMapperFactory.Handler
          The PropertyMapperFactory contains a set of so-called handlers.
 
Constructor Summary
PropertyMapperFactory()
          Creates a new instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMapperFactory

public PropertyMapperFactory()
Creates a new instance.

Method Detail

getInstance

public static PropertyMapperFactory getInstance()
Returns the default PropertyMapperFactory.


getMapperFor

public PropertyMapper getMapperFor(RegistryBean bean,
                                   Property property)
                            throws MappingException
Retrieves PropertyMapper for a bean method and property.

Parameters:
bean -
Returns:
PropertyMapper
Throws:
MappingException

addHandler

public void addHandler(java.lang.Class<? extends Property> propertyType,
                       PropertyMapperFactory.Handler pHandler)
Adds a new handler, which is responsible for the given annotation class.