Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.struts.tiles.xmlDefinition.DefinitionsFactory
public class DefinitionsFactory
extends java.lang.Object
implements Serializable
Field Summary | |
protected Map |
|
Constructor Summary | |
|
Method Summary | |
ComponentDefinition |
|
void |
|
String |
|
public DefinitionsFactory(XmlDefinitionsSet xmlDefinitions) throws NoSuchDefinitionException
Constructor. Create a factory initialized with definitions fromXmlDefinitionsSet
.
- Parameters:
xmlDefinitions
- Resolved definition from XmlDefinitionSet.
- Throws:
NoSuchDefinitionException
- If an error occurs while resolving inheritance
public ComponentDefinition getDefinition(String name, ServletRequest request, ServletContext servletContext) throws NoSuchDefinitionException, DefinitionsFactoryException
Get a definition by its name.
- 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.
public void putDefinition(ComponentDefinition definition)
Put definition in set.
- Parameters:
definition
- Definition to put.
public String toString()
Return String representation.
- Returns:
- String representation.