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

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

public class PropertyMapper<P extends PropertyInfo>
extends Object
implements MethodInvoker

Version:
$Revision$
Author:
Julien Viet

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

Field Detail

info

protected final P extends PropertyInfo info
Constructor Detail

PropertyMapper

public PropertyMapper(P info)
Method Detail

getInfo

public P getInfo()

get

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

set

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

invoke

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


Copyright © 2009 eXo Platform SAS. All Rights Reserved.