org.apache.tapestry.spec
Interface IExtensionSpecification
- All Superinterfaces:
- ILocatable, ILocationHolder, IPropertyHolder
- All Known Implementing Classes:
- ExtensionSpecification
- public interface IExtensionSpecification
- extends IPropertyHolder, ILocationHolder, ILocatable
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).
- Version:
- $Id: IExtensionSpecification.java,v 1.1 2003/04/15 18:14:11 glongman Exp $
- Author:
- glongman@intelligentworks.com
getClassName
public String getClassName()
setClassName
public void setClassName(String className)
addConfiguration
public void addConfiguration(String propertyName,
Object value)
getConfiguration
public Map getConfiguration()
- Returns an immutable Map of the configuration; keyed on property name,
with values as properties to assign.
instantiateExtension
public Object instantiateExtension(IResourceResolver resolver)
- Invoked to instantiate an instance of the extension and return it.
It also configures properties of the extension.
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.
setImmediate
public void setImmediate(boolean immediate)