Class BaseScope

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

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

      • DEFAULT_CACHE_EXPIRATION_TIMEOUT

        public static final int DEFAULT_CACHE_EXPIRATION_TIMEOUT
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseScope

        public BaseScope​(boolean sync)
      • BaseScope

        public BaseScope​(boolean sync,
                         long cacheExpirationTimeout)
    • Method Detail

      • getContextId

        protected abstract String getContextId()
      • 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)