org.chromattic.core.mapper
Class ObjectMapper<C extends ObjectContext>
java.lang.Object
org.chromattic.core.mapper.ObjectMapper<C>
- All Implemented Interfaces:
- MethodInvoker<C>
public class ObjectMapper<C extends ObjectContext>
- extends Object
- implements MethodInvoker<C>
- Version:
- $Revision$
- Author:
- Julien Viet
objectClass
protected final Class<?> objectClass
- .
ObjectMapper
public ObjectMapper(Class<?> objectClass,
Set<PropertyMapper<?,C>> propertyMappers,
Set<MethodMapper<C>> methodMappers,
NameConflictResolution onDuplicate,
ObjectFormatter formatter,
Instrumentor instrumentor,
String typeName,
NodeTypeKind kind)
invoke
public Object invoke(C ctx,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface MethodInvoker<C extends ObjectContext>
- Throws:
Throwable
getKind
public NodeTypeKind getKind()
getNodeTypeName
public String getNodeTypeName()
getFormatter
public ObjectFormatter getFormatter()
createObject
public Object createObject(C context)
getMethodMappers
public Set<MethodMapper<C>> getMethodMappers()
getPropertyMappers
public Set<PropertyMapper<?,C>> getPropertyMappers()
getObjectClass
public Class<?> getObjectClass()
getOnDuplicate
public NameConflictResolution getOnDuplicate()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010 eXo Platform SAS. All Rights Reserved.