jBPM distribution 6.0.0.CR5

org.jbpm.executor.impl.runtime
Class RuntimeManagerRegistry

java.lang.Object
  extended by org.jbpm.executor.impl.runtime.RuntimeManagerRegistry

public class RuntimeManagerRegistry
extends Object

Registry for active RuntimeManagers that can be used from within executor service.


Constructor Summary
protected RuntimeManagerRegistry()
           
 
Method Summary
 void addRuntimeManager(String id, RuntimeManager manager)
          Adds new RuntimeManager that shall be available for the executor
static RuntimeManagerRegistry get()
          Returns singleton instance of the registry
 RuntimeManager getRuntimeManager(String id)
          Returns RuntimeManager instance if registered, otherwise null
 void remove(String id)
          Remove RuntimeManager identified by given id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeManagerRegistry

protected RuntimeManagerRegistry()
Method Detail

get

public static RuntimeManagerRegistry get()
Returns singleton instance of the registry

Returns:

addRuntimeManager

public void addRuntimeManager(String id,
                              RuntimeManager manager)
Adds new RuntimeManager that shall be available for the executor

Parameters:
id - - id of the RuntimeManager
manager - - RuntimeManager instance

remove

public void remove(String id)
Remove RuntimeManager identified by given id

Parameters:
id - - id of the RuntimeManager

getRuntimeManager

public RuntimeManager getRuntimeManager(String id)
Returns RuntimeManager instance if registered, otherwise null

Parameters:
id - - id of the RuntimeManager
Returns:
registered instance of RuntimeManager or null

jBPM distribution 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.