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