org.apache.tapestry.spec
Interface IExtensionSpecification

All Superinterfaces:
IPropertyHolder, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Implementing Classes:
ExtensionSpecification

public interface IExtensionSpecification
extends IPropertyHolder, org.apache.hivemind.LocationHolder

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).

Author:
glongman@intelligentworks.com

Method Summary
 void addConfiguration(String propertyName, String value)
           
 String getClassName()
           
 Map getConfiguration()
          Returns an immutable Map of the configuration; keyed on property name, with values as properties to assign.
 Object instantiateExtension()
          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 LibrarySpecificationif 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.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

getClassName

String getClassName()

setClassName

void setClassName(String className)

addConfiguration

void addConfiguration(String propertyName,
                      String value)

getConfiguration

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


instantiateExtension

Object instantiateExtension()
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 LibrarySpecificationif parsed. Non-immediate extensions are instantiated only as needed.


setImmediate

void setImmediate(boolean immediate)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.