org.apache.tapestry.spec
Class BeanSpecification

java.lang.Object
  extended by org.apache.tapestry.util.BasePropertyHolder
      extended by org.apache.tapestry.spec.LocatablePropertyHolder
          extended by org.apache.tapestry.spec.BeanSpecification
All Implemented Interfaces:
ILocatable, ILocationHolder, IBeanSpecification, IPropertyHolder

public class BeanSpecification
extends LocatablePropertyHolder
implements IBeanSpecification

A specification of a helper bean for a component.

Since:
1.0.4
Version:
$Id: BeanSpecification.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Field Summary
protected  String className
           
protected  List initializers
          A List of IBeanInitializer.
protected  BeanLifecycle lifecycle
           
 
Constructor Summary
BeanSpecification()
           
 
Method Summary
 void addInitializer(IBeanInitializer initializer)
           
 String getClassName()
           
 String getDescription()
           
 List getInitializers()
          Returns the List of IBeanInitializers.
 BeanLifecycle getLifecycle()
           
 void setClassName(String className)
           
 void setDescription(String desc)
           
 void setLifecycle(BeanLifecycle lifecycle)
           
 String toString()
           
 
Methods inherited from class org.apache.tapestry.spec.LocatablePropertyHolder
getLocation, setLocation
 
Methods inherited from class org.apache.tapestry.util.BasePropertyHolder
getProperty, getPropertyNames, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.util.IPropertyHolder
getProperty, getPropertyNames, removeProperty, setProperty
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Field Detail

className

protected String className

lifecycle

protected BeanLifecycle lifecycle

initializers

protected List initializers
A List of IBeanInitializer.

Constructor Detail

BeanSpecification

public BeanSpecification()
Method Detail

getClassName

public String getClassName()
Specified by:
getClassName in interface IBeanSpecification

getLifecycle

public BeanLifecycle getLifecycle()
Specified by:
getLifecycle in interface IBeanSpecification

addInitializer

public void addInitializer(IBeanInitializer initializer)
Specified by:
addInitializer in interface IBeanSpecification
Since:
1.0.5

getInitializers

public List getInitializers()
Returns the List of IBeanInitializers. The caller should not modify this value!. May return null if there are no initializers.

Specified by:
getInitializers in interface IBeanSpecification
Since:
1.0.5

toString

public String toString()
Specified by:
toString in interface IBeanSpecification
Overrides:
toString in class Object

getDescription

public String getDescription()
Specified by:
getDescription in interface IBeanSpecification

setDescription

public void setDescription(String desc)
Specified by:
setDescription in interface IBeanSpecification

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface IBeanSpecification
Since:
3.0

setLifecycle

public void setLifecycle(BeanLifecycle lifecycle)
Specified by:
setLifecycle in interface IBeanSpecification
Since:
3.0