org.ow2.orchestra.pvm.env
Class EnvironmentFactory
java.lang.Object
org.ow2.orchestra.pvm.env.EnvironmentFactory
- All Implemented Interfaces:
- Serializable, Context
- Direct Known Subclasses:
- PvmEnvironmentFactory, SpringEnvironmentFactory
public abstract class EnvironmentFactory
- extends Object
- implements Context, Serializable
factory for Environments.
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(org.xml.sax.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 © 2011 OW2 Consortium. All Rights Reserved.