org.jbpm.pvm.internal.env
Interface EnvironmentFactory

All Superinterfaces:
Context, java.io.Serializable
All Known Implementing Classes:
ProcessEngineImpl, SpringProcessEngine

public interface EnvironmentFactory
extends Context, java.io.Serializable

factory for EnvironmentImpls.

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.pvm.internal.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.
 EnvironmentImpl openEnvironment()
          open a new EnvironmentImpl.
 
Methods inherited from interface org.jbpm.pvm.internal.env.Context
get, get, getName, has, keys, set
 

Method Detail

openEnvironment

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


close

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



Copyright © 2010 JBoss Community. All Rights Reserved.