Package de.hybris.platform.spring
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 java.lang.Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBeanCustom 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 Summary
Constructors Constructor Description HybrisRequestScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()java.lang.Objectget(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)protected de.hybris.platform.spring.ScopeMapgetCacheMap()protected de.hybris.platform.spring.ScopeMapgetCacheMapIfExists()java.lang.StringgetConversationId()voidregisterDestructionCallback(java.lang.String name, java.lang.Runnable callback)java.lang.Objectremove(java.lang.String name)java.lang.ObjectresolveContextualObject(java.lang.String arg0)
-
-
-
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:
afterPropertiesSetin interfaceorg.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:
getin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
public java.lang.String getConversationId()
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
remove
public java.lang.Object remove(java.lang.String name)
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
destroy
public void destroy() throws java.lang.Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
java.lang.Exception
-
resolveContextualObject
public java.lang.Object resolveContextualObject(java.lang.String arg0)
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
-