/** * Sets up the CacheConfiguration for runtime consumption, also registers this cache configuration with the cache manager's configuration * @param cacheManager The CacheManager as part of which the cache is being setup */ public void setupFor(final CacheManager cacheManager) { setupFor(cacheManager, true, null); }
/** * Initialize the given {@link Ehcache} without adding it to the {@link CacheManager}. * * @param cache * @param registerCacheConfig */ void initializeEhcache(final Ehcache cache, final boolean registerCacheConfig) { if (!registerCacheConfig) { cache.getCacheConfiguration().setupFor(this, registerCacheConfig, getParentCacheName(cache)); } else { cache.getCacheConfiguration().setupFor(this); } cache.setCacheManager(this); cache.setTransactionManagerLookup(transactionManagerLookup); cache.initialise(); if (!runtimeCfg.allowsDynamicCacheConfig()) { cache.disableDynamicFeatures(); } if (!registerCacheConfig) { associateShadowCache(cache); } try { cache.bootstrap(); } catch (CacheException e) { LOG.warn("Cache " + cache.getName() + "requested bootstrap but a CacheException occured. " + e.getMessage(), e); } }
/** * Sets up the CacheConfiguration for runtime consumption, also registers this cache configuration with the cache manager's configuration * @param cacheManager The CacheManager as part of which the cache is being setup */ public void setupFor(final CacheManager cacheManager) { setupFor(cacheManager, true, null); }
/** * Sets up the CacheConfiguration for runtime consumption, also registers this cache configuration with the cache manager's configuration * @param cacheManager The CacheManager as part of which the cache is being setup */ public void setupFor(final CacheManager cacheManager) { setupFor(cacheManager, true, null); }
/** * Sets up the CacheConfiguration for runtime consumption, also registers this cache configuration with the cache manager's configuration * @param cacheManager The CacheManager as part of which the cache is being setup */ public void setupFor(final CacheManager cacheManager) { setupFor(cacheManager, true); }
/** * Initialize the given {@link Ehcache} without adding it to the {@link CacheManager}. * * @param cache * @param registerCacheConfig */ void initializeEhcache(final Ehcache cache, final boolean registerCacheConfig) { if (!registerCacheConfig) { cache.getCacheConfiguration().setupFor(this, registerCacheConfig, getParentCacheName(cache)); } else { cache.getCacheConfiguration().setupFor(this); } cache.setCacheManager(this); cache.setTransactionManagerLookup(transactionManagerLookup); cache.initialise(); if (!runtimeCfg.allowsDynamicCacheConfig()) { cache.disableDynamicFeatures(); } if (!registerCacheConfig) { associateShadowCache(cache); } try { cache.bootstrap(); } catch (CacheException e) { LOG.warn("Cache " + cache.getName() + "requested bootstrap but a CacheException occured. " + e.getMessage(), e); } }
/** * Initialize the given {@link Ehcache} without adding it to the {@link CacheManager}. * * @param cache * @param registerCacheConfig */ void initializeEhcache(final Ehcache cache, final boolean registerCacheConfig) { if (!registerCacheConfig) { cache.getCacheConfiguration().setupFor(this, registerCacheConfig, getParentCacheName(cache)); } else { cache.getCacheConfiguration().setupFor(this); } cache.setCacheManager(this); cache.setTransactionManagerLookup(transactionManagerLookup); cache.initialise(); if (!runtimeCfg.allowsDynamicCacheConfig()) { cache.disableDynamicFeatures(); } if (!registerCacheConfig) { associateShadowCache(cache); } try { cache.bootstrap(); } catch (CacheException e) { LOG.warn("Cache " + cache.getName() + "requested bootstrap but a CacheException occured. " + e.getMessage(), e); } }
cache.getCacheConfiguration().setupFor(this, registerCacheConfig); cache.setCacheManager(this); cache.setTransactionManagerLookup(transactionManagerLookup);