Class XPathContextFactory
java.lang.Object
org.apache.commons.configuration2.tree.xpath.XPathContextFactory
An internally used helper class for creating new XPath context objects.
This class is used by XPathExpressionEngine. It simplifies testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> org.apache.commons.jxpath.JXPathContextcreateContext(T root, NodeHandler<T> handler) Creates a newJXPathContextbased on the passed in arguments.
-
Constructor Details
-
XPathContextFactory
XPathContextFactory()
-
-
Method Details
-
createContext
Creates a newJXPathContextbased on the passed in arguments.- Type Parameters:
T- the type of the nodes to be handled- Parameters:
root- the root nodehandler- the node handler- Returns:
- the newly created context
-