org.ow2.bonita.pvm.env
Class SpringEnvironmentFactory
java.lang.Object
org.ow2.bonita.pvm.env.EnvironmentFactory
org.ow2.bonita.pvm.env.SpringEnvironmentFactory
- All Implemented Interfaces:
- java.io.Serializable, Context, org.springframework.context.ApplicationContextAware
public class SpringEnvironmentFactory
- extends EnvironmentFactory
- implements org.springframework.context.ApplicationContextAware
this environment factory will see only the singleton beans.
The created SpringEnvironment
s will see the prototype beans and it
will cache them.
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
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)
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
java.lang.String |
getName()
|
boolean |
has(java.lang.String key)
|
java.util.Set<java.lang.String> |
keys()
|
SpringEnvironment |
openEnvironment()
open a new Environment. |
java.lang.Object |
set(java.lang.String key,
java.lang.Object value)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringEnvironmentFactory
public SpringEnvironmentFactory()
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(java.lang.String key)
- Specified by:
has
in interface Context
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
keys
public java.util.Set<java.lang.String> keys()
- Specified by:
keys
in interface Context
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface org.springframework.context.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 java.lang.String getName()
- Specified by:
getName
in interface Context
set
public java.lang.Object set(java.lang.String key,
java.lang.Object value)
- Specified by:
set
in interface Context
Copyright © 2009 OW2 Consortium. All Rights Reserved.