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 java.lang.Object
implements MethodInvoker

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  P info
           
 
Constructor Summary
PropertyMapper(P info)
           
 
Method Summary
 java.lang.Object get(EntityContext context)
           
 P getInfo()
           
 java.lang.Object invoke(EntityContext ctx, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void set(EntityContext context, java.lang.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 java.lang.Object get(EntityContext context)
                     throws java.lang.Throwable
Throws:
java.lang.Throwable

set

public void set(EntityContext context,
                java.lang.Object value)
         throws java.lang.Throwable
Throws:
java.lang.Throwable

invoke

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


Copyright © 2009 eXo Platform SAS. All Rights Reserved.