org.apache.struts.tiles
public interface DefinitionsFactory extends Serializable
Method Summary | |
---|---|
void | destroy() Receive notification that the factory is being shut down. |
DefinitionsFactoryConfig | getConfig()
Get factory configuration. |
ComponentDefinition | getDefinition(String name, ServletRequest request, ServletContext servletContext)
Get a definition by its name. |
void | init(DefinitionsFactoryConfig config, ServletContext servletContext)
Init definition factory.
|
void | setConfig(DefinitionsFactoryConfig config, ServletContext servletContext)
Set factory configuration.
|
Receive notification that the factory is being shut down.
Returns: TilesConfig
Parameters: name Name of requested definition. request Current servelet request servletContext current servlet context
Throws: DefinitionsFactoryException An error occur while getting definition. NoSuchDefinitionException No definition found for specified name Implementation can throw more accurate exception as a subclass of this exception
Parameters: config Configuration object used to set factory configuration. servletContext Servlet Context passed to factory.
Throws: DefinitionsFactoryException An error occur during initialization.
Parameters: config Configuration object used to set factory configuration. servletContext Servlet Context passed to factory.
Throws: DefinitionsFactoryException An error occur during initialization.