Package org.drools.core.world.impl
Class ContextManagerImpl
- java.lang.Object
-
- org.drools.core.world.impl.ContextManagerImpl
-
- All Implemented Interfaces:
org.kie.api.runtime.CommandExecutor,org.kie.internal.command.ContextManager
public class ContextManagerImpl extends Object implements org.kie.internal.command.ContextManager, org.kie.api.runtime.CommandExecutor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContextManagerImpl.CommandExecutionHandlerstatic classContextManagerImpl.DefaultCommandExecutionHandler
-
Constructor Summary
Constructors Constructor Description ContextManagerImpl()ContextManagerImpl(Map<String,org.kie.api.runtime.Context> contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.runtime.ContextcreateContext(String identifier)<T> Texecute(org.kie.api.command.Command<T> command)Objectget(String identifier)org.kie.api.runtime.ContextgetContext(String identifier)org.kie.api.runtime.ContextgetRootContext()voidremove(String identifier)voidset(String identifier, Object value)voidsetCommandExecutionHandler(ContextManagerImpl.CommandExecutionHandler executionHandler)
-
-
-
Field Detail
-
ROOT
public static String ROOT
-
-
Method Detail
-
execute
public <T> T execute(org.kie.api.command.Command<T> command)
- Specified by:
executein interfaceorg.kie.api.runtime.CommandExecutor
-
setCommandExecutionHandler
public void setCommandExecutionHandler(ContextManagerImpl.CommandExecutionHandler executionHandler)
-
createContext
public org.kie.api.runtime.Context createContext(String identifier)
- Specified by:
createContextin interfaceorg.kie.internal.command.ContextManager
-
getContext
public org.kie.api.runtime.Context getContext(String identifier)
- Specified by:
getContextin interfaceorg.kie.internal.command.ContextManager
-
getRootContext
public org.kie.api.runtime.Context getRootContext()
-
remove
public void remove(String identifier)
-
-