org.openrdf.repository.object.composition
Class BehaviourFactory
java.lang.Object
org.openrdf.repository.object.composition.BehaviourFactory
- Direct Known Subclasses:
- AbstractClassFactory, FieldPopulaterFactory, PropertyMapperFactory, ProxyObjectBehaviourFactory, SparqlBehaviourFactory, XSLTBehaviourFactory
public abstract class BehaviourFactory
- extends Object
Base class for constructing behaviours from other interfaces or classes.
- Author:
- James Leigh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_FIELD_NAME
protected static final String BEAN_FIELD_NAME
- See Also:
- Constant Field Values
CLASS_PREFIX
protected static final String CLASS_PREFIX
- See Also:
- Constant Field Values
cp
protected ClassFactory cp
properties
protected PropertyMapper properties
BehaviourFactory
public BehaviourFactory()
findImplementations
public static Collection<Class<?>> findImplementations(ClassFactory cl,
PropertyMapper mapper,
Collection<Class<?>> classes,
Set<Class<?>> bases)
throws IOException
- Throws:
IOException
setClassDefiner
public void setClassDefiner(ClassFactory definer)
setBaseClasses
public void setBaseClasses(Set<Class<?>> bases)
setPropertyMapper
public void setPropertyMapper(PropertyMapper mapper)
findImplementations
public Collection<Class<?>> findImplementations(Collection<Class<?>> classes)
isEnhanceable
protected abstract boolean isEnhanceable(Class<?> role)
throws ObjectStoreConfigException
- Throws:
ObjectStoreConfigException
findImplementations
protected Collection<? extends Class<?>> findImplementations(Class<?> concept)
throws Exception
- Throws:
Exception
enhance
protected void enhance(ClassTemplate cc,
Class<?> role)
throws Exception
- Throws:
Exception
isBaseClass
protected boolean isBaseClass(Class<?> role)
findBehaviour
protected final Class<?> findBehaviour(Class<?> concept)
throws Exception
- Throws:
Exception
getImplementingClasses
protected Set<Class<?>> getImplementingClasses(Class<?> role,
Set<Class<?>> implementations)
createClassTemplate
protected ClassTemplate createClassTemplate(String className,
Class<?> role)
createBehaviourTemplate
protected ClassTemplate createBehaviourTemplate(String className,
Class<?> concept)
isOverridden
protected boolean isOverridden(Method m)
getJavaClassName
protected String getJavaClassName(Class<?> concept)
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.