org.oddjob.arooa.design
Class GenericDesignFactory

java.lang.Object
  extended by org.oddjob.arooa.design.GenericDesignFactory
All Implemented Interfaces:
DesignFactory

public class GenericDesignFactory
extends Object
implements DesignFactory

A DesignFactory that creates a DesignInstance from the properties of a class and it's

Author:
rob

Constructor Summary
GenericDesignFactory(ArooaClass forClass)
          Constructor.
 
Method Summary
 DesignInstance createDesign(ArooaElement element, ArooaContext parentContext)
          Create a DesignInstance.
 DesignProperty[] designProperties(DesignInstance design)
          Create the DesignPropertys for a design.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDesignFactory

public GenericDesignFactory(ArooaClass forClass)
Constructor.

Parameters:
forClass - The class. Must not be null.
Method Detail

createDesign

public DesignInstance createDesign(ArooaElement element,
                                   ArooaContext parentContext)
                            throws ArooaPropertyException
Description copied from interface: DesignFactory
Create a DesignInstance.

Specified by:
createDesign in interface DesignFactory
Parameters:
element - The ArooaElement corresponding to the design.
parentContext - The parent ArooaContext in which to create the design.
Returns:
The design.
Throws:
ArooaPropertyException

designProperties

public DesignProperty[] designProperties(DesignInstance design)
Create the DesignPropertys for a design.

Parameters:
design - The design.
Returns:
Array of design properties.