org.openrdf.repository.object.composition
Class PropertyMapperFactory

java.lang.Object
  extended by org.openrdf.repository.object.composition.BehaviourFactory
      extended by org.openrdf.repository.object.composition.PropertyMapperFactory

public class PropertyMapperFactory
extends BehaviourFactory

Properties that have the rdf or localname annotation are replaced with getters and setters that access the Sesame Repository directly.

Author:
James Leigh

Field Summary
 
Fields inherited from class org.openrdf.repository.object.composition.BehaviourFactory
BEAN_FIELD_NAME, cp, properties
 
Constructor Summary
PropertyMapperFactory()
           
 
Method Summary
protected  void enhance(ClassTemplate cc, Class<?> concept)
           
static Class<?> getClassType(Method method)
           
static Class<?> getContentClassType(Method method)
           
static Type[] getContentTypeArguments(Method method)
           
protected  String getJavaClassName(Class<?> concept)
           
 Method getReadMethod(Field field)
           
static Type[] getTypeArguments(Method method)
           
 Method getWriteMethod(Field field)
           
protected  boolean isEnhanceable(Class<?> concept)
           
 void setPropertyMapperFactoryClass(Class<? extends PropertySetFactory> propertyFactoryClass)
           
 
Methods inherited from class org.openrdf.repository.object.composition.BehaviourFactory
findBehaviour, findImplementations, setClassDefiner, setPropertyMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMapperFactory

public PropertyMapperFactory()
Method Detail

setPropertyMapperFactoryClass

public void setPropertyMapperFactoryClass(Class<? extends PropertySetFactory> propertyFactoryClass)

getReadMethod

public Method getReadMethod(Field field)
                     throws Exception
Throws:
Exception

getWriteMethod

public Method getWriteMethod(Field field)
                      throws Exception
Throws:
Exception

getJavaClassName

protected String getJavaClassName(Class<?> concept)
Specified by:
getJavaClassName in class BehaviourFactory

isEnhanceable

protected boolean isEnhanceable(Class<?> concept)
                         throws ObjectStoreConfigException
Specified by:
isEnhanceable in class BehaviourFactory
Throws:
ObjectStoreConfigException

enhance

protected void enhance(ClassTemplate cc,
                       Class<?> concept)
                throws Exception
Specified by:
enhance in class BehaviourFactory
Throws:
Exception

getClassType

public static Class<?> getClassType(Method method)

getContentClassType

public static Class<?> getContentClassType(Method method)

getTypeArguments

public static Type[] getTypeArguments(Method method)

getContentTypeArguments

public static Type[] getContentTypeArguments(Method method)


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.