| java.lang.Object org.apache.commons.jxpath.JXPathContextFactory
All known Subclasses: org.apache.commons.jxpath.ri.JXPathContextFactoryReferenceImpl,
JXPathContextFactory | abstract public class JXPathContextFactory (Code) | | 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.
See Also: JXPathContext.newContext(Object) See Also: JXPathContext.newContext(JXPathContextObject) author: Dmitri Plotnikov version: $Revision: 1.8 $ $Date: 2004/02/29 14:17:42 $ |
Method Summary | |
abstract public JXPathContext | newContext(JXPathContext parentContext, Object contextBean) Creates a new instance of a JXPathContext using the
currently configured parameters. | 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:
-
Use the
org.apache.commons.jxpath.JXPathContextFactory
system property.
-
Alternatively, use the JAVA_HOME (the parent directory where jdk is
installed)/lib/jxpath.properties for a property file that contains the
name of the implementation class keyed on
org.apache.commons.jxpath.JXPathContextFactory .
-
Use the Services API (as detailed in the JAR specification), if
available, to determine the classname.
|
FACTORY_NAME_PROPERTY | final public static String FACTORY_NAME_PROPERTY(Code) | | The default property
|
JXPathContextFactory | protected JXPathContextFactory()(Code) | | |
newInstance | public static JXPathContextFactory newInstance()(Code) | | 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:
-
Use the
org.apache.commons.jxpath.JXPathContextFactory
system property.
-
Alternatively, use the JAVA_HOME (the parent directory where jdk is
installed)/lib/jxpath.properties for a property file that contains the
name of the implementation class keyed on
org.apache.commons.jxpath.JXPathContextFactory .
-
Use the Services API (as detailed in the JAR specification), if
available, to determine the classname. The Services API will look
for a classname in the file
META- INF/services/org.apache.commons.jxpath.
JXPathContextFactory in jars available to the runtime.
-
Platform default
JXPathContextFactory instance.
Once an application has obtained a reference to a
JXPathContextFactory it can use the factory to
obtain JXPathContext instances.
exception: JXPathFactoryConfigurationError - if the implementation is notavailable or cannot be instantiated. |
|
|