org.apache.struts.tiles.xmlDefinition
public class DefinitionsFactory extends Object implements Serializable
| Field Summary | |
|---|---|
| protected Map | definitions Underlying map containing all definitions. |
| Constructor Summary | |
|---|---|
| DefinitionsFactory(XmlDefinitionsSet xmlDefinitions)
Constructor.
| |
| Method Summary | |
|---|---|
| ComponentDefinition | getDefinition(String name, ServletRequest request, ServletContext servletContext)
Get a definition by its name. |
| void | putDefinition(ComponentDefinition definition)
Put definition in set. |
| String | toString()
Return String representation. |
Parameters: xmlDefinitions Resolved definition from XmlDefinitionSet.
Throws: NoSuchDefinitionException If an error occurs while resolving inheritance
Parameters: name Name of the definition. request Servlet request. servletContext 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: definition Definition to put.
Returns: String representation.