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 Details

    • SAPSessionScopeHandler

      public SAPSessionScopeHandler()
  • Method Details

    • get

      public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
      Specified by:
      get 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
    • registerDestructionCallback

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

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

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

      public void setSapHybrisSessionProvider(SAPHybrisSessionProvider sapHybrisSessionProvider)
      Sets the session object factory.
      Parameters:
      sapHybrisSessionProvider - the sapHybrisSessionProvider to set