Class HybrisRequestScope

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class HybrisRequestScope
    extends java.lang.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 Detail

      • HybrisRequestScope

        public HybrisRequestScope()
    • Method Detail

      • getCacheMap

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

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

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

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

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

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

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

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

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