Class XPathContextFactory

java.lang.Object
org.apache.commons.configuration2.tree.xpath.XPathContextFactory

class XPathContextFactory extends Object

An internally used helper class for creating new XPath context objects.

This class is used by XPathExpressionEngine. It simplifies testing.

  • Constructor Details

    • XPathContextFactory

      XPathContextFactory()
  • Method Details

    • createContext

      public <T> org.apache.commons.jxpath.JXPathContext createContext(T root, NodeHandler<T> handler)
      Creates a new JXPathContext based on the passed in arguments.
      Type Parameters:
      T - the type of the nodes to be handled
      Parameters:
      root - the root node
      handler - the node handler
      Returns:
      the newly created context