org.ow2.bonita.pvm.env
Class EnvironmentFactory

java.lang.Object
  extended by 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 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

For the default parser's XML schema, see PvmEnvironmentFactoryParser.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.ow2.bonita.pvm.env.Context
CONTEXTNAME_ENVIRONMENT, CONTEXTNAME_ENVIRONMENT_FACTORY
 
Constructor Summary
EnvironmentFactory()
           
 
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
 
Methods inherited from interface org.ow2.bonita.pvm.env.Context
get, get, getName, has, keys, set
 

Constructor Detail

EnvironmentFactory

public EnvironmentFactory()
Method Detail

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.