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 243791 2004-02-19 17:38:13Z hlship $
Author:
glongman@intelligentworks.com

Method Summary
 void addConfiguration(String propertyName, Object value)
           
 String getClassName()
           
 Map getConfiguration()
          Returns an immutable Map of the configuration; keyed on property name, with values as properties to assign.
 Object instantiateExtension(IResourceResolver resolver)
          Invoked to instantiate an instance of the extension and return it.
 boolean isImmediate()
          Returns true if the extensions should be instantiated immediately after the containing LibrarySpecification if parsed.
 void setClassName(String className)
           
 void setImmediate(boolean immediate)
           
 
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
 

Method Detail

getClassName

String getClassName()

setClassName

void setClassName(String className)

addConfiguration

void addConfiguration(String propertyName,
                      Object value)

getConfiguration

Map getConfiguration()
Returns an immutable Map of the configuration; keyed on property name, with values as properties to assign.


instantiateExtension

Object instantiateExtension(IResourceResolver resolver)
Invoked to instantiate an instance of the extension and return it. It also configures properties of the extension.


isImmediate

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

void setImmediate(boolean immediate)