Class XPathContextFactory
- java.lang.Object
-
- org.apache.commons.configuration2.tree.xpath.XPathContextFactory
-
class XPathContextFactory extends java.lang.Object
An internally used helper class for creating new XPath context objects.
This class is used by
XPathExpressionEngine
. It simplifies testing.
-
-
Constructor Summary
Constructors Constructor Description XPathContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> org.apache.commons.jxpath.JXPathContext
createContext(T root, NodeHandler<T> handler)
Creates a newJXPathContext
based on the passed in arguments.
-
-
-
Method Detail
-
createContext
public <T> org.apache.commons.jxpath.JXPathContext createContext(T root, NodeHandler<T> handler)
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
-
-