本文整理了Java中net.sf.ehcache.Cache.getBootstrapCacheLoader()
方法的一些代码示例,展示了Cache.getBootstrapCacheLoader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.getBootstrapCacheLoader()
方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:getBootstrapCacheLoader
[英]Accessor for the BootstrapCacheLoader associated with this cache. For testing purposes.
[中]与此缓存关联的BootstrapCacheLoader的访问器。用于测试目的。
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Sets the bootstrap cache loader.
*
* @param bootstrapCacheLoader the loader to be used
* @throws CacheException if this method is called after the cache is initialized
*/
public void setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader) throws CacheException {
if (!cacheStatus.isUninitialized()) {
throw new CacheException("A bootstrap cache loader can only be set before the cache is initialized. "
+ configuration.getName());
}
BootstrapCacheLoader oldValue = getBootstrapCacheLoader();
this.bootstrapCacheLoader = bootstrapCacheLoader;
firePropertyChange("BootstrapCacheLoader", oldValue, bootstrapCacheLoader);
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* Sets the bootstrap cache loader.
*
* @param bootstrapCacheLoader the loader to be used
* @throws CacheException if this method is called after the cache is initialized
*/
public void setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader) throws CacheException {
if (!cacheStatus.isUninitialized()) {
throw new CacheException("A bootstrap cache loader can only be set before the cache is initialized. "
+ configuration.getName());
}
BootstrapCacheLoader oldValue = getBootstrapCacheLoader();
this.bootstrapCacheLoader = bootstrapCacheLoader;
firePropertyChange("BootstrapCacheLoader", oldValue, bootstrapCacheLoader);
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* Sets the bootstrap cache loader.
*
* @param bootstrapCacheLoader the loader to be used
* @throws CacheException if this method is called after the cache is initialized
*/
public void setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader) throws CacheException {
if (!cacheStatus.isUninitialized()) {
throw new CacheException("A bootstrap cache loader can only be set before the cache is initialized. "
+ configuration.getName());
}
BootstrapCacheLoader oldValue = getBootstrapCacheLoader();
this.bootstrapCacheLoader = bootstrapCacheLoader;
firePropertyChange("BootstrapCacheLoader", oldValue, bootstrapCacheLoader);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Sets the bootstrap cache loader.
*
* @param bootstrapCacheLoader the loader to be used
* @throws CacheException if this method is called after the cache is initialized
*/
public void setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader) throws CacheException {
if (!cacheStatus.isUninitialized()) {
throw new CacheException("A bootstrap cache loader can only be set before the cache is initialized. "
+ configuration.getName());
}
BootstrapCacheLoader oldValue = getBootstrapCacheLoader();
this.bootstrapCacheLoader = bootstrapCacheLoader;
firePropertyChange("BootstrapCacheLoader", oldValue, bootstrapCacheLoader);
}
内容来源于网络,如有侵权,请联系作者删除!