org.ow2.bonita.pvm.env
Class EnvironmentFactory
java.lang.Object
org.ow2.bonita.pvm.env.EnvironmentFactory
- All Implemented Interfaces:
- java.io.Serializable, Context
- Direct Known Subclasses:
- PvmEnvironmentFactory, SpringEnvironmentFactory
public abstract class EnvironmentFactory
- extends java.lang.Object
- implements Context, java.io.Serializable
factory for Environment
s.
Default implementation is PvmEnvironmentFactory
. EnvironmentFactory
is thread safe, you should use one environment factory for all your threads.
Easiest way to obtain an EnvironmentFactory is with
#parseResource(String)
#parseInputStream(InputStream)
#parseInputSource(InputSource)
#parseXmlString(String)
For the default parser's XML schema, see PvmEnvironmentFactoryParser
.
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
Method Summary |
abstract void |
close()
closes this environment factory and cleans any allocated resources. |
abstract Environment |
openEnvironment()
open a new Environment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentFactory
public EnvironmentFactory()
openEnvironment
public abstract Environment openEnvironment()
- open a new Environment. The client is responsible for closing the
environment with
Environment.close()
.
close
public abstract void close()
- closes this environment factory and cleans any allocated resources.
Copyright © 2009 OW2 Consortium. All Rights Reserved.