org.jbpm.env.context
Class JobContext

java.lang.Object
  extended by org.jbpm.env.context.JobContext
All Implemented Interfaces:
Context

public class JobContext
extends java.lang.Object
implements Context


Constructor Summary
JobContext(Job<?> job)
           
 
Method Summary
<T> T
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobContext

public JobContext(Job<?> job)
Method Detail

get

public java.lang.Object get(java.lang.String key)
Specified by:
get in interface Context

has

public boolean has(java.lang.String key)
Specified by:
has in interface Context

keys

public java.util.Set<java.lang.String> keys()
Specified by:
keys in interface Context

set

public java.lang.Object set(java.lang.String key,
                            java.lang.Object value)
Specified by:
set in interface Context

get

public <T> T get(java.lang.Class<T> type)
Specified by:
get in interface Context

setEnvironment

public void setEnvironment(Environment environment)
Description copied from interface: Context
invoked by the environment when this context is added.

Specified by:
setEnvironment in interface Context

getName

public java.lang.String getName()
Specified by:
getName in interface Context