Class EmptyContext

  • All Implemented Interfaces:
    org.kie.api.runtime.manager.Context<java.lang.String>

    public class EmptyContext
    extends java.lang.Object
    implements org.kie.api.runtime.manager.Context<java.lang.String>
    Default implementation of Context interface that does not bring any specifics to the RuntimeManager and is usually used for instances of manager that does not deal with contextual information:
    • Singleton
    • PerRequest
    To obtain instances of this context use static get() method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String CONTEXT_ID  
      protected static org.kie.api.runtime.manager.Context<java.lang.String> INSTANCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EmptyContext()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.kie.api.runtime.manager.Context<java.lang.String> get()
      Returns instances of the empty context.
      java.lang.String getContextId()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        protected static final org.kie.api.runtime.manager.Context<java.lang.String> INSTANCE
    • Constructor Detail

      • EmptyContext

        protected EmptyContext()
    • Method Detail

      • getContextId

        public java.lang.String getContextId()
        Specified by:
        getContextId in interface org.kie.api.runtime.manager.Context<java.lang.String>
      • get

        public static org.kie.api.runtime.manager.Context<java.lang.String> get()
        Returns instances of the empty context.
        Returns: