@FacetConstraint(value=WebXmlFacet.class) public class ErraiBusServletConfigFacet extends AbstractXmlResourceFacet
Modifier and Type | Field and Description |
---|---|
static String |
webXmlRootExpression |
xmlParserFactory, xPathFactory
MAIN_PROFILE
Constructor and Description |
---|
ErraiBusServletConfigFacet() |
Modifier and Type | Method and Description |
---|---|
protected Map<XPathExpression,Collection<Node>> |
getElementsToInsert(XPath xPath,
ElementFactory elemFactory)
Get DOM nodes to write to an XML configuration file.
|
protected Map<XPathExpression,Collection<Node>> |
getElementsToVerify(XPath xPath,
ElementFactory elemFactory)
Get a map of parent nodes to xml fragments used to verify the installation
of this facet.
|
protected String |
getRelPath()
Get the relative path of XML file to be configured by this facet.
|
protected Map<XPathExpression,Node> |
getRemovalMap(XPath xPath,
ElementFactory elemFactory)
Return a map of xpath expressions of nodes to be replaced to their
replacements, used when this facet is uninstalled.
|
protected Map<XPathExpression,Node> |
getReplacements(XPath xPath,
ElementFactory elemFactory)
Get a Map of nodes to be replaced in an XML configuration file.
|
getResFile, install, isInstalled, uninstall
addDependenciesToProfile, error, getDependency, getDependency, getProject, hasDependency, hasProvidedDependency, warning
equals, getFaceted, hashCode, setFaceted
public static final String webXmlRootExpression
protected Map<XPathExpression,Collection<Node>> getElementsToInsert(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getElementsToInsert
in class AbstractXmlResourceFacet
xPath
- Used to generate xpath expressions for finding nodes to add
children to.elemFactory
- The returned nodes should be created with this.XPathExpressions
(for finding
parent nodes), to collections of Nodes
to add as
children.ParserConfigurationException
XPathExpressionException
protected Map<XPathExpression,Collection<Node>> getElementsToVerify(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getElementsToInsert
.getElementsToVerify
in class AbstractXmlResourceFacet
ParserConfigurationException
XPathExpressionException
protected Map<XPathExpression,Node> getReplacements(XPath xPath, ElementFactory elemFactory)
AbstractXmlResourceFacet
getReplacements
in class AbstractXmlResourceFacet
xPath
- Used to generate xpath expressions for finding nodes to replace.elemFactory
- The returned nodes should be created with this.XPathExpressions
(for finding
nodes to replace), to replacement Nodes
to add as
children.protected String getRelPath()
AbstractXmlResourceFacet
getRelPath
in class AbstractXmlResourceFacet
protected Map<XPathExpression,Node> getRemovalMap(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getRemovalMap
in class AbstractXmlResourceFacet
xPath
- Used to generate XPathExpressions
.elemFactory
- Used to generate Nodes
.ParserConfigurationException
XPathExpressionException
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.