Package org.oddjob.arooa.design
Class GenericDesignFactory
java.lang.Object
org.oddjob.arooa.design.GenericDesignFactory
- All Implemented Interfaces:
DesignFactory
- Direct Known Subclasses:
ForEventsDesignFactory,SerializableGenericDesignFactory
A
DesignFactory that creates a DesignInstance
from the properties of a class and its ArooaBeanDescriptor.- Author:
- rob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDesign(ArooaElement element, ArooaContext parentContext) Create aDesignInstance.designProperties(DesignInstance design) Create theDesignPropertys for a design.
-
Constructor Details
-
GenericDesignFactory
Constructor.- Parameters:
forClass- The class. Must not be null.
-
-
Method Details
-
createDesign
public DesignInstance createDesign(ArooaElement element, ArooaContext parentContext) throws ArooaPropertyException Description copied from interface:DesignFactoryCreate aDesignInstance.- Specified by:
createDesignin interfaceDesignFactory- Parameters:
element- The ArooaElement corresponding to the design.parentContext- The parent ArooaContext in which to create the design.- Returns:
- The design.
- Throws:
ArooaPropertyException
-
designProperties
Create theDesignPropertys for a design.- Parameters:
design- The design.- Returns:
- Array of design properties.
-