java.lang.Object
com.cumulocity.microservice.context.scope.BaseScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public abstract class BaseScope extends Object implements org.springframework.beans.factory.config.Scope
  • Field Details

    • DEFAULT_CACHE_EXPIRATION_TIMEOUT

      public static final int DEFAULT_CACHE_EXPIRATION_TIMEOUT
      See Also:
  • Constructor Details

    • BaseScope

      public BaseScope(boolean sync)
    • BaseScope

      public BaseScope(boolean sync, long cacheExpirationTimeout)
  • Method Details

    • getContextId

      protected abstract String getContextId()
    • getScopeContainer

      protected ScopeContainer getScopeContainer()
    • get

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

      protected Object doGet(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
    • 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
    • getCacheExpirationTimeout

      public long getCacheExpirationTimeout()
    • getObjectFromFactory

      protected Object getObjectFromFactory(org.springframework.beans.factory.ObjectFactory<?> objectFactory)