org.jbpm.api.env
Interface EnvironmentFactory

All Superinterfaces:
Context, java.io.Serializable

public interface EnvironmentFactory
extends 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

Field Summary
 
Fields inherited from interface org.jbpm.api.env.Context
CONTEXTNAME_EXECUTION, CONTEXTNAME_JOB, CONTEXTNAME_PROCESS_ENGINE, CONTEXTNAME_TASK, CONTEXTNAME_TRANSACTION
 
Method Summary
 void close()
          closes this environment factory and cleans any allocated resources.
 Environment openEnvironment()
          open a new Environment.
 Environment openEnvironment(java.util.List<WireObject> txWireObjects)
          open a new Environment and pass in a list of objects that must be placed/exposed in the transaction context.
 
Methods inherited from interface org.jbpm.api.env.Context
get, get, getName, has, keys, set
 

Method Detail

openEnvironment

Environment openEnvironment()
open a new Environment. The client is responsible for closing the environment with Environment.close().


openEnvironment

Environment openEnvironment(java.util.List<WireObject> txWireObjects)
open a new Environment and pass in a list of objects that must be placed/exposed in the transaction context. The client is responsible for closing the environment with Environment.close().


close

void close()
closes this environment factory and cleans any allocated resources.



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.