org.chromattic.core.mapper
Class PropertyMapper<P extends PropertyInfo,O extends ObjectContext>

java.lang.Object
  extended by org.chromattic.core.mapper.PropertyMapper<P,O>
All Implemented Interfaces:
MethodInvoker<O>
Direct Known Subclasses:
JCRNodeAttributePropertyMapper, JCRPropertyListPropertyMapper, JCRPropertyMapPropertyMapper, JCRPropertyPropertyMapper, RelatedPropertyMapper

public abstract class PropertyMapper<P extends PropertyInfo,O extends ObjectContext>
extends Object
implements MethodInvoker<O>

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  Class<O> contextType
          .
protected  P info
          .
 
Constructor Summary
PropertyMapper(Class<O> contextType, P info)
           
 
Method Summary
 Object get(O context)
           
 P getInfo()
           
 Class<O> getType()
           
 Object invoke(O ctx, Method method, Object[] args)
           
 void set(O context, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextType

protected final Class<O extends ObjectContext> contextType
.


info

protected final P extends PropertyInfo info
.

Constructor Detail

PropertyMapper

public PropertyMapper(Class<O> contextType,
                      P info)
Method Detail

getType

public Class<O> getType()

getInfo

public P getInfo()

get

public Object get(O context)
           throws Throwable
Throws:
Throwable

set

public void set(O context,
                Object value)
         throws Throwable
Throws:
Throwable

invoke

public Object invoke(O ctx,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface MethodInvoker<O extends ObjectContext>
Throws:
Throwable


Copyright © 2010 eXo Platform SAS. All Rights Reserved.