org.jbpm.executor.impl.runtime
public class RuntimeManagerRegistry extends Object
RuntimeManagers
that can be used from within executor service.Modifier | Constructor and Description |
---|---|
protected |
RuntimeManagerRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addRuntimeManager(String id,
org.kie.api.runtime.manager.RuntimeManager manager)
Adds new
RuntimeManager that shall be available for the executor |
static RuntimeManagerRegistry |
get()
Returns singleton instance of the registry
|
org.kie.api.runtime.manager.RuntimeManager |
getRuntimeManager(String id)
Returns RuntimeManager instance if registered, otherwise null
|
void |
remove(String id)
Remove
RuntimeManager identified by given id |
public static RuntimeManagerRegistry get()
public void addRuntimeManager(String id, org.kie.api.runtime.manager.RuntimeManager manager)
RuntimeManager
that shall be available for the executorid
- - id of the RuntimeManagermanager
- - RuntimeManager instancepublic void remove(String id)
RuntimeManager
identified by given idid
- - id of the RuntimeManagerpublic org.kie.api.runtime.manager.RuntimeManager getRuntimeManager(String id)
id
- - id of the RuntimeManagerCopyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.