org.jbpm.env.impl
Class SpringEnvironmentFactory

java.lang.Object
  extended by org.jbpm.env.EnvironmentFactory
      extended by org.jbpm.env.impl.SpringEnvironmentFactory
All Implemented Interfaces:
java.io.Serializable, Context

public class SpringEnvironmentFactory
extends EnvironmentFactory
implements Context

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.env.EnvironmentFactory
parser
 
Constructor Summary
SpringEnvironmentFactory()
           
 
Method Summary
 void close()
          closes this environment factory and cleans any allocated resources.
 void environmentClosed(Environment environment)
           
<T> T
get(java.lang.Class<T> type)
           
 java.lang.Object get(java.lang.String key)
           
 CommandService getCommandService()
           
 Environment getCurrentEnvironment()
           
 java.lang.String getName()
           
 boolean has(java.lang.String key)
           
 java.util.Set<java.lang.String> keys()
           
 Environment openEnvironment()
          open a new Environment.
 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 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
 

Constructor Detail

SpringEnvironmentFactory

public SpringEnvironmentFactory()
Method Detail

get

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

get

public <T> T get(java.lang.Class<T> type)
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

openEnvironment

public Environment openEnvironment()
Description copied from class: EnvironmentFactory
open a new Environment. The client is responsible for closing the environment with Environment.close().

Specified by:
openEnvironment in class EnvironmentFactory

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

getCurrentEnvironment

public Environment getCurrentEnvironment()

getName

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

close

public void close()
Description copied from class: EnvironmentFactory
closes this environment factory and cleans any allocated resources.

Specified by:
close in class EnvironmentFactory

environmentClosed

public void environmentClosed(Environment environment)

getCommandService

public CommandService getCommandService()