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

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  java.lang.Class<O> contextType
          .
protected  P info
          .
 
Constructor Summary
PropertyMapper(java.lang.Class<O> contextType, P info)
           
 
Method Summary
 java.lang.Object get(O context)
           
 P getInfo()
           
 java.lang.Class<O> getType()
           
 java.lang.Object invoke(O ctx, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void set(O 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

contextType

protected final java.lang.Class<O extends ObjectContext> contextType
.


info

protected final P extends PropertyInfo info
.

Constructor Detail

PropertyMapper

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

getType

public java.lang.Class<O> getType()

getInfo

public P getInfo()

get

public java.lang.Object get(O context)
                     throws java.lang.Throwable
Throws:
java.lang.Throwable

set

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

invoke

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.