de.bea.domingo.map
Class MapperFactory

java.lang.Object
  extended by de.bea.domingo.map.MapperFactory

public final class MapperFactory
extends java.lang.Object

Factory for mapper objects.

Author:
Kurt Riede
See Also:
DMapper

Method Summary
 DMapper getDigestMapper(java.lang.Class clazz)
          Returns the mapper that is registered for a given digest class.
 DMapper getInstanceMapper(java.lang.Class clazz)
          Returns the mapper that is registered for a given instance class.
static MapperFactory newInstance()
          Creates and returns a new instance of this mapper factory.
protected  void registerMapper(java.lang.Class mapperClass)
          Registers a new mapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static MapperFactory newInstance()
Creates and returns a new instance of this mapper factory.

Returns:
a new instance of this class

registerMapper

protected void registerMapper(java.lang.Class mapperClass)
                       throws MapperRegistrationException
Registers a new mapper.

Parameters:
mapperClass - the class of the new mapper
Throws:
MapperRegistrationException - if the mapper cannot get registered

getInstanceMapper

public DMapper getInstanceMapper(java.lang.Class clazz)
Returns the mapper that is registered for a given instance class.

Parameters:
clazz - the instance class
Returns:
mapper for that class

getDigestMapper

public DMapper getDigestMapper(java.lang.Class clazz)
Returns the mapper that is registered for a given digest class.

Parameters:
clazz - the instance class
Returns:
mapper for that class


Domingo Java-API