Class ThreadScopeConfiguration

java.lang.Object
ch.tocco.nice2.boot.impl.spring.ThreadScopeConfiguration
All Implemented Interfaces:
ThreadHandler, org.springframework.beans.factory.config.Scope

@Component public class ThreadScopeConfiguration extends Object implements org.springframework.beans.factory.config.Scope, ThreadHandler
  • Constructor Details

    • ThreadScopeConfiguration

      public ThreadScopeConfiguration()
  • Method Details

    • setupThread

      public void setupThread()
      Specified by:
      setupThread in interface ThreadHandler
    • cleanupThread

      public void cleanupThread()
      Specified by:
      cleanupThread in interface ThreadHandler
    • createNewScope

      public void createNewScope()
    • hasActiveScope

      public boolean hasActiveScope()
    • clearCurrentScope

      public void clearCurrentScope()
    • get

      public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
      Specified by:
      get in interface org.springframework.beans.factory.config.Scope
    • remove

      public Object remove(String name)
      Specified by:
      remove in interface org.springframework.beans.factory.config.Scope
    • registerDestructionCallback

      public void registerDestructionCallback(String name, Runnable callback)
      Specified by:
      registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
    • resolveContextualObject

      public Object resolveContextualObject(String key)
      Specified by:
      resolveContextualObject in interface org.springframework.beans.factory.config.Scope
    • getConversationId

      public String getConversationId()
      Specified by:
      getConversationId in interface org.springframework.beans.factory.config.Scope