org.ow2.orchestra.pvm.env
Class SpringEnvironmentFactory
java.lang.Object
org.ow2.orchestra.pvm.env.EnvironmentFactory
org.ow2.orchestra.pvm.env.SpringEnvironmentFactory
- All Implemented Interfaces:
- 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 SpringEnvironments will see the prototype beans and it
will cache them.
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
| 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(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 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 String getName()
- Specified by:
getName in interface Context
set
public Object set(String key,
Object value)
- Specified by:
set in interface Context
Copyright © 2011 OW2 Consortium. All Rights Reserved.