|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbpm.env.EnvironmentFactory
org.jbpm.env.impl.DefaultEnvironmentFactory
public class DefaultEnvironmentFactory
an environment factory that also is the application context.
This environment factory will produce environments with 2 contexts: the application context and the block context.
An application context is build from two wire definitions: the application wire definition and the environment wire definition.
The application context itself is build from the application wire definition. So all objects that are created in this context remain cached for the lifetime of this application context object.
This application context is also a environment factory. The produced environments contain 2 contexts: the application context itself and a new environment context, build from the environment wire definition. For each created environment, a new environment context will be created from the same environment wire definition. Objects in the environment context will live for as long as the environment.
| Field Summary | |
|---|---|
protected WireContext |
applicationWireContext
|
protected WireDefinition |
blockWireDefinition
|
protected static EnvironmentParser |
environmentParser
|
protected java.util.List<java.lang.Class<?>> |
hiddenExceptionTypes
|
| Fields inherited from class org.jbpm.env.EnvironmentFactory |
|---|
parser |
| Constructor Summary | |
|---|---|
DefaultEnvironmentFactory()
|
|
| Method Summary | ||
|---|---|---|
void |
close()
closes this environment factory and cleans any allocated resources. |
|
|
get(java.lang.Class<T> type)
|
|
java.lang.Object |
get(java.lang.String key)
|
|
WireContext |
getApplicationWireContext()
|
|
WireDefinition |
getBlockContextDefinition()
|
|
WireDefinition |
getBlockWireDefinition()
|
|
java.util.List<java.lang.Class<?>> |
getHiddenExceptionTypes()
|
|
java.lang.String |
getName()
|
|
void |
handleException(DefaultEnvironment defaultEnvironment,
java.lang.Throwable exception)
|
|
boolean |
has(java.lang.String key)
|
|
java.util.Set<java.lang.String> |
keys()
|
|
protected boolean |
mustBeLogged(java.lang.Throwable exception)
|
|
Environment |
openEnvironment()
open a new Environment. |
|
java.lang.Object |
set(java.lang.String key,
java.lang.Object value)
|
|
void |
setApplicationWireContext(WireContext applicationWireContext)
|
|
void |
setBlockWireDefinition(WireDefinition blockWireDefinition)
|
|
void |
setEnvironment(Environment environment)
invoked by the environment when this context is added. |
|
void |
setHiddenExceptionTypes(java.util.List<java.lang.Class<?>> hiddenExceptionTypes)
|
|
| Methods inherited from class org.jbpm.env.EnvironmentFactory |
|---|
getParser, parse, push, setParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static EnvironmentParser environmentParser
protected WireContext applicationWireContext
protected WireDefinition blockWireDefinition
protected java.util.List<java.lang.Class<?>> hiddenExceptionTypes
| Constructor Detail |
|---|
public DefaultEnvironmentFactory()
| Method Detail |
|---|
public Environment openEnvironment()
EnvironmentFactoryEnvironment.close().
openEnvironment in class EnvironmentFactorypublic void setEnvironment(Environment environment)
Context
setEnvironment in interface Contextpublic void close()
EnvironmentFactory
close in class EnvironmentFactory
public void handleException(DefaultEnvironment defaultEnvironment,
java.lang.Throwable exception)
protected boolean mustBeLogged(java.lang.Throwable exception)
public java.lang.Object get(java.lang.String key)
get in interface Contextpublic <T> T get(java.lang.Class<T> type)
get in interface Contextpublic java.lang.String getName()
getName in interface Contextpublic boolean has(java.lang.String key)
has in interface Contextpublic java.util.Set<java.lang.String> keys()
keys in interface Context
public java.lang.Object set(java.lang.String key,
java.lang.Object value)
set in interface Contextpublic WireDefinition getBlockContextDefinition()
public void setBlockWireDefinition(WireDefinition blockWireDefinition)
public java.util.List<java.lang.Class<?>> getHiddenExceptionTypes()
public void setHiddenExceptionTypes(java.util.List<java.lang.Class<?>> hiddenExceptionTypes)
public WireContext getApplicationWireContext()
public void setApplicationWireContext(WireContext applicationWireContext)
public WireDefinition getBlockWireDefinition()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||