Class WideSessionScope

java.lang.Object
org.springframework.web.context.request.AbstractRequestAttributesScope
pl.matsuo.core.web.scope.WideSessionScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public class WideSessionScope
extends org.springframework.web.context.request.AbstractRequestAttributesScope
implements org.springframework.beans.factory.config.Scope
Session scope modification that provides bean even outside of http request processing.
  • Field Details

  • Constructor Details

    • WideSessionScope

      public WideSessionScope()
  • Method Details

    • getScope

      protected int getScope()
      Specified by:
      getScope in class org.springframework.web.context.request.AbstractRequestAttributesScope
    • getConversationId

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

      public Object get​(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
      Specified by:
      get in interface org.springframework.beans.factory.config.Scope
      Overrides:
      get in class org.springframework.web.context.request.AbstractRequestAttributesScope
    • remove

      public Object remove​(String name)
      Specified by:
      remove in interface org.springframework.beans.factory.config.Scope
      Overrides:
      remove in class org.springframework.web.context.request.AbstractRequestAttributesScope
    • registerDestructionCallback

      public void registerDestructionCallback​(String name, Runnable callback)
      Specified by:
      registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
      Overrides:
      registerDestructionCallback in class org.springframework.web.context.request.AbstractRequestAttributesScope