Class 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
    • Field Detail

      • ROOT

        public static String ROOT
    • Constructor Detail

      • ContextManagerImpl

        public ContextManagerImpl()
      • ContextManagerImpl

        public ContextManagerImpl​(Map<String,​org.kie.api.runtime.Context> contexts)
    • Method Detail

      • execute

        public <T> T execute​(org.kie.api.command.Command<T> command)
        Specified by:
        execute in interface org.kie.api.runtime.CommandExecutor
      • createContext

        public org.kie.api.runtime.Context createContext​(String identifier)
        Specified by:
        createContext in interface org.kie.internal.command.ContextManager
      • getContext

        public org.kie.api.runtime.Context getContext​(String identifier)
        Specified by:
        getContext in interface org.kie.internal.command.ContextManager
      • getRootContext

        public org.kie.api.runtime.Context getRootContext()
      • set

        public void set​(String identifier,
                        Object value)
      • remove

        public void remove​(String identifier)