org.jbpm.env
Interface Context
- All Known Implementing Classes:
- DefaultEnvironmentFactory, EnvironmentFactory, ExecutionVariableContext, JobContext, MicrocontainerEnvironmentFactory, SpringEnvironmentFactory, WebRequestContext, WebSessionContext, WireContext
public interface Context
a group of named objects in an Environment
that have a similar lifespan.
- Author:
- Tom Baeyens
Method Summary |
|
get(java.lang.Class<T> type)
|
java.lang.Object |
get(java.lang.String key)
|
java.lang.String |
getName()
|
boolean |
has(java.lang.String key)
|
java.util.Set<java.lang.String> |
keys()
|
java.lang.Object |
set(java.lang.String key,
java.lang.Object value)
|
void |
setEnvironment(Environment environment)
invoked by the environment when this context is added. |
getName
java.lang.String getName()
get
java.lang.Object get(java.lang.String key)
get
<T> T get(java.lang.Class<T> type)
has
boolean has(java.lang.String key)
set
java.lang.Object set(java.lang.String key,
java.lang.Object value)
keys
java.util.Set<java.lang.String> keys()
setEnvironment
void setEnvironment(Environment environment)
- invoked by the environment when this context is added.