org.chromattic.core.mapper
Class TypeMapper

java.lang.Object
  extended by org.chromattic.core.mapper.TypeMapper
All Implemented Interfaces:
MethodInvoker
Direct Known Subclasses:
MixinTypeMapper, NodeTypeMapper

public abstract class TypeMapper
extends Object
implements MethodInvoker

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  Class<?> objectClass
          .
 
Constructor Summary
TypeMapper(Class<?> objectClass, Set<PropertyMapper> propertyMappers, Set<MethodMapper> methodMappers, NameConflictResolution onDuplicate, ObjectFormatter formatter, Instrumentor instrumentor)
           
 
Method Summary
 Object createObject(EntityContext context)
           
 ObjectFormatter getFormatter()
           
 Set<MethodMapper> getMethodMappers()
           
 Class<?> getObjectClass()
           
 NameConflictResolution getOnDuplicate()
           
 Set<PropertyMapper> getPropertyMappers()
           
abstract  String getTypeName()
           
 Object invoke(EntityContext ctx, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectClass

protected final Class<?> objectClass
.

Constructor Detail

TypeMapper

public TypeMapper(Class<?> objectClass,
                  Set<PropertyMapper> propertyMappers,
                  Set<MethodMapper> methodMappers,
                  NameConflictResolution onDuplicate,
                  ObjectFormatter formatter,
                  Instrumentor instrumentor)
Method Detail

invoke

public Object invoke(EntityContext ctx,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface MethodInvoker
Throws:
Throwable

getTypeName

public abstract String getTypeName()

getFormatter

public ObjectFormatter getFormatter()

createObject

public Object createObject(EntityContext context)

getMethodMappers

public Set<MethodMapper> getMethodMappers()

getPropertyMappers

public Set<PropertyMapper> getPropertyMappers()

getObjectClass

public Class<?> getObjectClass()

getOnDuplicate

public NameConflictResolution getOnDuplicate()


Copyright © 2009 eXo Platform SAS. All Rights Reserved.