/** * Sets the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. * <p/> * After the cacheManager attribute has been set, the template method * {@link #afterCacheManagerSet afterCacheManagerSet()} is executed to allow subclasses to adjust when a * cacheManager is available. * * @param cacheManager the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. */ public void setCacheManager(CacheManager cacheManager) { this.cacheManager = cacheManager; afterCacheManagerSet(); }
/** * Simply calls {@link #applyCacheManagerToRealms() applyCacheManagerToRealms()} to allow the * newly set {@link org.apache.shiro.cache.CacheManager CacheManager} to be propagated to the internal collection of <code>Realm</code> * that would need to use it. */ protected void afterCacheManagerSet() { super.afterCacheManagerSet(); applyCacheManagerToRealms(); }
/** * Sets the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. * <p/> * After the cacheManager attribute has been set, the template method * {@link #afterCacheManagerSet afterCacheManagerSet()} is executed to allow subclasses to adjust when a * cacheManager is available. * * @param cacheManager the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. */ public void setCacheManager(CacheManager cacheManager) { this.cacheManager = cacheManager; afterCacheManagerSet(); }
/** * Simply calls {@link #applyCacheManagerToRealms() applyCacheManagerToRealms()} to allow the * newly set {@link org.apache.shiro.cache.CacheManager CacheManager} to be propagated to the internal collection of <code>Realm</code> * that would need to use it. */ protected void afterCacheManagerSet() { super.afterCacheManagerSet(); applyCacheManagerToRealms(); }
/** * Sets the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. * <p/> * After the cacheManager attribute has been set, the template method * {@link #afterCacheManagerSet afterCacheManagerSet()} is executed to allow subclasses to adjust when a * cacheManager is available. * * @param cacheManager the CacheManager used by this {@code SecurityManager} and potentially any of its * children components. */ public void setCacheManager(CacheManager cacheManager) { this.cacheManager = cacheManager; afterCacheManagerSet(); }