Class JXPathContextFactory

Direct Known Subclasses:

public abstract class JXPathContextFactory
extends java.lang.Object

Defines a factory API that enables applications to obtain a JXPathContext instance. To acquire a JXPathContext, first call the static newInstance() method of JXPathContextFactory. This method returns a concrete JXPathContextFactory. Then call newContext() on that instance. You will rarely need to perform these steps explicitly: usually you can call one of the JXPathContex.newContext methods, which will perform these steps for you.

$Revision: 1.5 $ $Date: 2003/03/11 00:59:12 $
Dmitri Plotnikov
See Also:
JXPathContext.newContext(Object), JXPathContext.newContext(JXPathContext,Object)

Field Summary
static java.lang.String FACTORY_NAME_PROPERTY
          The default property
Constructor Summary
protected JXPathContextFactory()
Method Summary
abstract  JXPathContext newContext(JXPathContext parentContext, java.lang.Object contextBean)
          Creates a new instance of a JXPathContext using the currently configured parameters.
static JXPathContextFactory newInstance()
          Obtain a new instance of a JXPathContextFactory.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final java.lang.String FACTORY_NAME_PROPERTY
The default property
Constructor Detail


protected JXPathContextFactory()
Method Detail


public static JXPathContextFactory newInstance()
Obtain a new instance of a JXPathContextFactory. This static method creates a new factory instance. This method uses the following ordered lookup procedure to determine the JXPathContextFactory implementation class to load: Once an application has obtained a reference to a JXPathContextFactory it can use the factory to obtain JXPathContext instances.
JXPathFactoryConfigurationError - if the implementation is not available or cannot be instantiated.


public abstract JXPathContext newContext(JXPathContext parentContext,
                                         java.lang.Object contextBean)
                                  throws JXPathContextFactoryConfigurationError
Creates a new instance of a JXPathContext using the currently configured parameters.
JXPathContextFactoryConfigurationError - if a JXPathContext cannot be created which satisfies the configuration requested

Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.