|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.JXPathContextFactory
public abstract class JXPathContextFactory
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(org.apache.commons.jxpath.JXPathContext, java.lang.Object)
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.
JXPathContext.newContext(Object)
,
JXPathContext.newContext(JXPathContext,Object)
Field Summary | |
---|---|
static String |
FACTORY_NAME_PROPERTY
The default property |
Constructor Summary | |
---|---|
protected |
JXPathContextFactory()
Create a new JXPathContextFactory. |
Method Summary | |
---|---|
abstract JXPathContext |
newContext(JXPathContext parentContext,
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 String FACTORY_NAME_PROPERTY
Constructor Detail |
---|
protected JXPathContextFactory()
Method Detail |
---|
public static JXPathContextFactory newInstance()
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:
org.apache.commons.jxpath.JXPathContextFactory
system property.
org.apache.commons.jxpath.JXPathContextFactory
.
META- INF/services/org.apache.commons.jxpath.
JXPathContextFactory
in jars available to the runtime.
JXPathContextFactory
instance.
JXPathContextFactory
it can use the factory to
obtain JXPathContext instances.
JXPathContextFactoryConfigurationError
- if the implementation
is not available or cannot be instantiated.public abstract JXPathContext newContext(JXPathContext parentContext, Object contextBean)
parentContext
- parent contextcontextBean
- Object bean
JXPathContextFactoryConfigurationError
- if a JXPathContext
cannot be created which satisfies the configuration requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |