public class DefinitionsFactory extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Map |
definitions
Underlying map containing all definitions.
|
Constructor and Description |
---|
DefinitionsFactory(XmlDefinitionsSet xmlDefinitions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ComponentDefinition |
getDefinition(String name,
javax.servlet.ServletRequest request,
javax.servlet.ServletContext servletContext)
Get a definition by its name.
|
void |
putDefinition(ComponentDefinition definition)
Put definition in set.
|
String |
toString()
Return String representation.
|
protected Map definitions
public DefinitionsFactory(XmlDefinitionsSet xmlDefinitions) throws NoSuchDefinitionException
XmlDefinitionsSet
.xmlDefinitions
- Resolved definition from XmlDefinitionSet.NoSuchDefinitionException
- If an error occurs while resolving inheritancepublic ComponentDefinition getDefinition(String name, javax.servlet.ServletRequest request, javax.servlet.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.Copyright © 2000–2016 Apache Software Foundation. All rights reserved.