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.JXPathContext
createContext
(T root, NodeHandler<T> handler) Creates a newJXPathContext
based on the passed in arguments.
-
Constructor Details
-
XPathContextFactory
XPathContextFactory()
-
-
Method Details
-
createContext
Creates a newJXPathContext
based 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
-