org.apache.tapestry.spec
Class BeanSpecification

java.lang.Object
  extended byorg.apache.tapestry.util.BasePropertyHolder
      extended byorg.apache.tapestry.spec.LocatablePropertyHolder
          extended byorg.apache.tapestry.spec.BeanSpecification
All Implemented Interfaces:
IBeanSpecification, IPropertyHolder, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, PropertyInjectable

public class BeanSpecification
extends LocatablePropertyHolder
implements IBeanSpecification

A specification of a helper bean for a component.

Since:
1.0.4
Author:
Howard Lewis Ship

Field Summary
protected  java.lang.String className
           
protected  java.util.List initializers
          A List of IBeanInitializer.
protected  BeanLifecycle lifecycle
           
 
Constructor Summary
BeanSpecification()
           
 
Method Summary
 void addInitializer(IBeanInitializer initializer)
           
 java.lang.String getClassName()
           
 java.lang.String getDescription()
           
 java.util.List getInitializers()
          Returns the Listof IBeanInitializers.
 BeanLifecycle getLifecycle()
           
 java.lang.String getPropertyName()
          Returns the name of the property to be created for this component, or null if no property should be created.
 void setClassName(java.lang.String className)
           
 void setDescription(java.lang.String desc)
           
 void setLifecycle(BeanLifecycle lifecycle)
           
 void setPropertyName(java.lang.String propertyName)
           
 java.lang.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.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

className

protected java.lang.String className

lifecycle

protected BeanLifecycle lifecycle

initializers

protected java.util.List initializers
A List of IBeanInitializer.

Constructor Detail

BeanSpecification

public BeanSpecification()
Method Detail

getClassName

public java.lang.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 java.util.List getInitializers()
Returns the Listof 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 java.lang.String toString()
Specified by:
toString in interface IBeanSpecification

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IBeanSpecification

setDescription

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

setClassName

public void setClassName(java.lang.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 *

getPropertyName

public java.lang.String getPropertyName()
Description copied from interface: PropertyInjectable
Returns the name of the property to be created for this component, or null if no property should be created.

Specified by:
getPropertyName in interface PropertyInjectable
Since:
4.0

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Specified by:
setPropertyName in interface PropertyInjectable
Since:
4.0