org.openrdf.repository.object.composition
Class BehaviourFactory

java.lang.Object
  extended by org.openrdf.repository.object.composition.BehaviourFactory
Direct Known Subclasses:
PropertyMapperFactory, SparqlBehaviourFactory

public abstract class BehaviourFactory
extends Object

Base class for constructing behaviours from other interfaces or classes.

Author:
James Leigh

Field Summary
protected static String BEAN_FIELD_NAME
           
protected  ClassFactory cp
           
protected  PropertyMapper properties
           
 
Constructor Summary
BehaviourFactory()
           
 
Method Summary
protected abstract  void enhance(ClassTemplate cc, Class<?> concept)
           
protected  Class<?> findBehaviour(Class<?> concept)
           
 Collection<Class<?>> findImplementations(Collection<Class<?>> interfaces)
           
protected abstract  String getJavaClassName(Class<?> concept)
           
protected abstract  boolean isEnhanceable(Class<?> concept)
           
 void setClassDefiner(ClassFactory definer)
           
 void setPropertyMapper(PropertyMapper mapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_FIELD_NAME

protected static final String BEAN_FIELD_NAME
See Also:
Constant Field Values

cp

protected ClassFactory cp

properties

protected PropertyMapper properties
Constructor Detail

BehaviourFactory

public BehaviourFactory()
Method Detail

setClassDefiner

public void setClassDefiner(ClassFactory definer)

setPropertyMapper

public void setPropertyMapper(PropertyMapper mapper)

findImplementations

public Collection<Class<?>> findImplementations(Collection<Class<?>> interfaces)

getJavaClassName

protected abstract String getJavaClassName(Class<?> concept)

enhance

protected abstract void enhance(ClassTemplate cc,
                                Class<?> concept)
                         throws Exception
Throws:
Exception

findBehaviour

protected Class<?> findBehaviour(Class<?> concept)
                          throws Exception
Throws:
Exception

isEnhanceable

protected abstract boolean isEnhanceable(Class<?> concept)
                                  throws ObjectStoreConfigException
Throws:
ObjectStoreConfigException


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