Class HybrisRequestScope

java.lang.Object
de.hybris.platform.spring.HybrisRequestScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class HybrisRequestScope extends Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Custom scope for binding beans to the time a jalo session has been activated. This is similar to the standard request scope. It belongs to a single thread only. Please note that each time a different session is being activated the current scope is deleted.
  • Constructor Details

    • HybrisRequestScope

      public HybrisRequestScope()
  • Method Details

    • getCacheMap

      protected de.hybris.platform.spring.ScopeMap getCacheMap()
    • getCacheMapIfExists

      protected de.hybris.platform.spring.ScopeMap getCacheMapIfExists()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • get

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

      public String getConversationId()
      Specified by:
      getConversationId 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
    • remove

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

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • resolveContextualObject

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