org.ow2.bonita.pvm.env
Class PvmEnvironmentFactory
java.lang.Object
org.ow2.bonita.pvm.env.EnvironmentFactory
org.ow2.bonita.pvm.env.PvmEnvironmentFactory
- All Implemented Interfaces:
- java.io.Serializable, Context
public class PvmEnvironmentFactory
- extends EnvironmentFactory
- implements Context
an environment factory that also is the environment-factory context.
This environment factory will produce environments with 2 contexts: the
environment-factory context and the block context.
An environment-factory context is build from two wire definitions: the
environment-factory wire definition and the environment wire definition.
The environment-factory context itself is build from the environment-factory
wire definition. So all objects that are created in this context remain
cached for the lifetime of this environment-factory context object.
This environment-factory context is also a environment factory. The produced
environments contain 2 contexts: the environment-factory context itself and a
new environment context, build from the environment wire definition. For each
created environment, a new environment context will be created from the same
environment wire definition. Objects in the environment context will live for
as long as the environment.
- 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 |
pvmEnvironmentFactoryParser
protected static PvmEnvironmentFactoryParser pvmEnvironmentFactoryParser
environmentFactoryCtxWireContext
protected WireContext environmentFactoryCtxWireContext
environmentCtxWireDefinition
protected WireDefinition environmentCtxWireDefinition
PvmEnvironmentFactory
public PvmEnvironmentFactory()
PvmEnvironmentFactory
public PvmEnvironmentFactory(java.lang.String resource)
PvmEnvironmentFactory
public PvmEnvironmentFactory(java.lang.String resource,
java.lang.ClassLoader classLoader)
PvmEnvironmentFactory
public PvmEnvironmentFactory(java.io.File file)
PvmEnvironmentFactory
public PvmEnvironmentFactory(java.net.URL url)
PvmEnvironmentFactory
public PvmEnvironmentFactory(java.io.InputStream inputStream)
parseXmlString
public static PvmEnvironmentFactory parseXmlString(java.lang.String xmlString)
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
close
public void close()
- Description copied from class:
EnvironmentFactory
- closes this environment factory and cleans any allocated resources.
- Specified by:
close
in class EnvironmentFactory
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
getName
public java.lang.String getName()
- Specified by:
getName
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
setEnvironmentCtxWireDefinition
public void setEnvironmentCtxWireDefinition(WireDefinition blockWireDefinition)
getEnvironmentFactoryCtxWireContext
public WireContext getEnvironmentFactoryCtxWireContext()
setEnvironmentFactoryCtxWireContext
public void setEnvironmentFactoryCtxWireContext(WireContext applicationWireContext)
getEnvironmentCtxWireDefinition
public WireDefinition getEnvironmentCtxWireDefinition()
Copyright © 2009 OW2 Consortium. All Rights Reserved.