|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.tiles.xmlDefinition.DefinitionsFactory
public class DefinitionsFactory
A factory for definitions. This factory allows to retrieve definitions by their keys.
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Map definitions
Constructor Detail |
---|
public DefinitionsFactory(XmlDefinitionsSet xmlDefinitions) throws NoSuchDefinitionException
XmlDefinitionsSet
.
xmlDefinitions
- Resolved definition from XmlDefinitionSet.
NoSuchDefinitionException
- If an error occurs while resolving inheritanceMethod Detail |
---|
public ComponentDefinition getDefinition(String name, ServletRequest request, ServletContext servletContext) throws NoSuchDefinitionException, DefinitionsFactoryException
name
- Name of the definition.request
- Servlet request.servletContext
- Servlet context.
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)
definition
- Definition to put.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |