org.jbpm.pvm.env
Class EnvironmentFactory

Object
  extended by 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

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

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface 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 © 2008 JBoss, a division of Red Hat. All Rights Reserved.