org.apache.tapestry.spec
Class ExtensionSpecification
java.lang.Object
org.apache.tapestry.util.BasePropertyHolder
org.apache.tapestry.spec.LocatablePropertyHolder
org.apache.tapestry.spec.ExtensionSpecification
- All Implemented Interfaces:
- ILocatable, ILocationHolder, IExtensionSpecification, IPropertyHolder
public class ExtensionSpecification
- extends LocatablePropertyHolder
- implements IExtensionSpecification
Defines an "extension", which is much like a helper bean, but
is part of a library or application specification (and has the same
lifecycle as the application).
- Since:
- 2.2
- Version:
- $Id: ExtensionSpecification.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
_configuration
protected Map _configuration
ExtensionSpecification
public ExtensionSpecification()
getClassName
public String getClassName()
- Specified by:
getClassName
in interface IExtensionSpecification
setClassName
public void setClassName(String className)
- Specified by:
setClassName
in interface IExtensionSpecification
addConfiguration
public void addConfiguration(String propertyName,
Object value)
- Specified by:
addConfiguration
in interface IExtensionSpecification
getConfiguration
public Map getConfiguration()
- Returns an immutable Map of the configuration; keyed on property name,
with values as properties to assign.
- Specified by:
getConfiguration
in interface IExtensionSpecification
instantiateExtension
public Object instantiateExtension(IResourceResolver resolver)
- Invoked to instantiate an instance of the extension and return it.
It also configures properties of the extension.
- Specified by:
instantiateExtension
in interface IExtensionSpecification
toString
public String toString()
- Overrides:
toString
in class Object
isImmediate
public boolean isImmediate()
- Returns true if the extensions should be instantiated
immediately after the containing
LibrarySpecification
if parsed. Non-immediate extensions are instantiated
only as needed.
- Specified by:
isImmediate
in interface IExtensionSpecification
setImmediate
public void setImmediate(boolean immediate)
- Specified by:
setImmediate
in interface IExtensionSpecification