Class SAPSessionScopeHandler
java.lang.Object
de.hybris.platform.sap.core.spring.SAPSessionScopeHandler
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class SAPSessionScopeHandler
extends Object
implements org.springframework.beans.factory.config.Scope
Spring scope handler for custom scope
sapSession implementing the Spring Scope interface.
This scope keeps the according beans within the lifetime of the SAPHybrisSession.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterDestructionCallback(String name, Runnable callback) voidsetSapHybrisSessionProvider(SAPHybrisSessionProvider sapHybrisSessionProvider) Sets the session object factory.
-
Constructor Details
-
SAPSessionScopeHandler
public SAPSessionScopeHandler()
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
setSapHybrisSessionProvider
Sets the session object factory.- Parameters:
sapHybrisSessionProvider- the sapHybrisSessionProvider to set
-