com.ail.core.configure
Class Builder

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.configure.Component
          extended by com.ail.core.configure.Group
              extended by com.ail.core.configure.Builder
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Builder
extends Group

A "Builder" represents an instance of a class builder - i.e. a class factory. There may be an arbitrary number of builders in any live system each capable of building class based on different inputs. e.g. and BeanShellBuilder while builds class based on a bean shell script, or a CastorXMLBuilder whild builds classes based on the XML representation of a class instance.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
Builder()
          Default constructor.
 
Method Summary
 java.lang.String getFactory()
          Get the name of the factory class (e.g.
 AbstractFactory getInstance()
          Fetch the cached instance of the factory.
 void setFactory(java.lang.String factory)
          Set the name of the factory class.
 void setInstance(AbstractFactory instance)
          Set the instance of the factory class.
 
Methods inherited from class com.ail.core.configure.Group
addGroup, addParameter, findGroup, findParameter, findParameterValue, findParameterValue, getGroup, getGroup, getGroupCount, getParameter, getParameter, getParameterCount, removeAllGroup, removeAllParameter, removeGroup, removeParameter, setGroup, setGroup, setParameter, setParameterAt
 
Methods inherited from class com.ail.core.configure.Component
getName, getNameLowerCase, setName
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Builder

public Builder()
Default constructor.

Method Detail

getFactory

public java.lang.String getFactory()
Get the name of the factory class (e.g. com.ail.core.factory.BeanShellFactory).

Returns:
The name of the factory class.

setFactory

public void setFactory(java.lang.String factory)
Set the name of the factory class.

Parameters:
factory - The name of the Factory class

getInstance

public AbstractFactory getInstance()
Fetch the cached instance of the factory.

Returns:
An instance of the factory class.

setInstance

public void setInstance(AbstractFactory instance)
Set the instance of the factory class.

Parameters:
instance - Instance of the class.