|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.env.EnvironmentFactory
public abstract class EnvironmentFactory
factory for Environment
s.
Default implementation is
DefaultEnvironmentFactory
. EnvironmentFactory is thread safe, you
should use one environment factory for all your threads.
Easiest way to obtain an EnvironmentFactory is with
#parseResource(String)
#parseInputStream(InputStream)
#parseInputSource(InputSource)
#parseXmlString(String)
For the default parser's XML schema, see EnvironmentParser
.
Field Summary | |
---|---|
protected static Parser |
parser
|
Constructor Summary | |
---|---|
EnvironmentFactory()
|
Method Summary | |
---|---|
abstract void |
close()
closes this environment factory and cleans any allocated resources. |
static Parser |
getParser()
returns an EnvironmentParser unless another parser is explicitely specified
with setParser(Parser) . |
abstract Environment |
openEnvironment()
open a new Environment. |
static EnvironmentFactory |
parse(StreamSource streamSource)
parses the given stream source with the current parser . |
protected static void |
push(Environment environment)
after opening of a new environment succeeded, the environment must be pushed in the stack of current environments. |
static void |
setParser(Parser parser)
overwrites the default parser with a custom parser
that will be used in methods #parseResource(String) ,
#parseInputStream(InputStream) , #parseInputSource(InputSource)
and #parseXmlString(String) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbpm.env.Context |
---|
get, get, getName, has, keys, set, setEnvironment |
Field Detail |
---|
protected static Parser parser
Constructor Detail |
---|
public EnvironmentFactory()
Method Detail |
---|
public static Parser getParser()
EnvironmentParser
unless another parser is explicitely specified
with setParser(Parser)
. This method is used to get a parser for methods
#parseResource(String)
, #parseInputStream(InputStream)
,
#parseInputSource(InputSource)
and #parseXmlString(String)
.
public static void setParser(Parser parser)
the default parser
with a custom parser
that will be used in methods #parseResource(String)
,
#parseInputStream(InputStream)
, #parseInputSource(InputSource)
and #parseXmlString(String)
.
public static EnvironmentFactory parse(StreamSource streamSource)
the current parser
.
public abstract Environment openEnvironment()
Environment.close()
.
public abstract void close()
protected static void push(Environment environment)
Environment.pop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |