| org.apache.struts.tiles.DefinitionsFactory
All known Subclasses: org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper,
DefinitionsFactory | public interface DefinitionsFactory extends Serializable(Code) | | Tiles Definition factory.
This interface replace old ComponentDefinitionsFactory.
Main method getDefinition() is exactly the same. Initialization method change.
This interface allows to retrieve a definition by its name, independently of
the factory implementation.
Object life cycle is as follow:
- Constructor: create object
- setConfig: set config and initialize factory. After first call to this
method, factory is operational.
- destroy: factory is being shutdown.
Implementation must be Serializable, in order to be compliant with web Container
having this constraint (Weblogic 6.x).
|
destroy | public void destroy()(Code) | | Receive notification that the factory is being
shut down.
|
setConfig | public void setConfig(DefinitionsFactoryConfig config, ServletContext servletContext) throws DefinitionsFactoryException(Code) | | Set factory configuration.
This method is used to change factory configuration.
This method is optional, and can send an exception if implementation
doesn't allow change in configuration.
Parameters: config - Configuration object used to set factory configuration. Parameters: servletContext - Servlet Context passed to factory. throws: DefinitionsFactoryException - An error occur during initialization. |
|
|