org.jbpm.pvm.env
Class SpringEnvironmentFactory

Object
  extended by EnvironmentFactory
      extended by SpringEnvironmentFactory
All Implemented Interfaces:
Serializable, Context, ApplicationContextAware

public class SpringEnvironmentFactory
extends EnvironmentFactory
implements ApplicationContextAware

this environment factory will see only the singleton beans. The created SpringEnvironments will see the prototype beans and it will cache them.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface Context
CONTEXTNAME_ENVIRONMENT, CONTEXTNAME_ENVIRONMENT_FACTORY
 
Constructor Summary
SpringEnvironmentFactory()
           
 
Method Summary
 void close()
          closes this environment factory and cleans any allocated resources.
<T> T
get(Class<T> type)
           
 Object get(String key)
           
 ApplicationContext getApplicationContext()
           
 String getName()
           
 boolean has(String key)
           
 Set<String> keys()
           
 SpringEnvironment openEnvironment()
          open a new Environment.
 Object set(String key, Object value)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringEnvironmentFactory

public SpringEnvironmentFactory()
Method Detail

openEnvironment

public SpringEnvironment 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

has

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

get

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

get

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

keys

public Set<String> keys()
Specified by:
keys in interface Context

getApplicationContext

public ApplicationContext getApplicationContext()

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface ApplicationContextAware

close

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

Specified by:
close in class EnvironmentFactory

getName

public String getName()
Specified by:
getName in interface Context

set

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


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.