类 AbstractCacheManager

    • 方法详细资料

      • afterPropertiesSet

        public void afterPropertiesSet()
        从接口复制的说明: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean
      • initializeCaches

        public void initializeCaches()
        Initialize the static configuration of caches.

        Triggered on startup through afterPropertiesSet(); can also be called to re-initialize at runtime.

        从以下版本开始:
        4.2.2
        另请参阅:
        loadCaches()
      • getCache

        public Cache getCache​(String name)
        从接口复制的说明: CacheManager
        Get the cache associated with the given name.

        Note that the cache may be lazily created at runtime if the native provider supports it.

        指定者:
        getCache 在接口中 CacheManager
        参数:
        name - the cache identifier (must not be null)
        返回:
        the associated cache, or null if such a cache does not exist or could be not created
      • decorateCache

        protected Cache decorateCache​(Cache cache)
        Decorate the given Cache object if necessary.
        参数:
        cache - the Cache object to be added to this CacheManager
        返回:
        the decorated Cache object to be used instead, or simply the passed-in Cache object by default
      • getMissingCache

        protected Cache getMissingCache​(String name)
        Return a missing cache with the specified name, or null if such a cache does not exist or could not be created on demand.

        Caches may be lazily created at runtime if the native provider supports it. If a lookup by name does not yield any result, an AbstractCacheManager subclass gets a chance to register such a cache at runtime. The returned cache will be automatically added to this cache manager.

        参数:
        name - the name of the cache to retrieve
        返回:
        the missing cache, or null if no such cache exists or could be created on demand
        从以下版本开始:
        4.1
        另请参阅:
        getCache(String)