Java 类net.sf.ehcache.extension.CacheExtension 实例源码

项目:communote-server    文件:DistributionSupportCacheExtensionFactory.java   
/**
 * {@inheritDoc}
 */
@Override
public CacheExtension createCacheExtension(Ehcache cache, Properties properties) {
    String replicationScheme = properties.getProperty("scheme");
    if (StringUtils.isBlank(replicationScheme)) {
        throw new CacheException("No scheme specified for distribution");
    }
    if (!replicationScheme.equals("RMI")) {
        throw new CacheException("The provided scheme " + replicationScheme
                + " is not supported, only RMI can be used");
    }
    return new DistributionSupportCacheExtension(cache, extractSettings(properties));
}
项目:JInsight    文件:CacheLifecycleListener.java   
@Override
public CacheExtension clone(Ehcache cache) throws CloneNotSupportedException {
  throw new CloneNotSupportedException();
}
项目:communote-server    文件:DistributionSupportCacheExtension.java   
/**
 * {@inheritDoc}
 */
public CacheExtension clone(net.sf.ehcache.Ehcache cache) throws CloneNotSupportedException {
    throw new CloneNotSupportedException("Cloning is not supported for this CacheExtension");
}
项目:FinanceAnalytics    文件:ExpiryTaskExtension.java   
@Override
public CacheExtension clone(Ehcache cache) throws CloneNotSupportedException {
  throw new CloneNotSupportedException();
}
项目:ehcache-extensions    文件:EhcacheDelegateAdapter.java   
@Override
public List<CacheExtension> getRegisteredCacheExtensions() {
    init();
    return super.getRegisteredCacheExtensions();
}
项目:ehcache-extensions    文件:EhcacheDelegateAdapter.java   
@Override
public void registerCacheExtension(CacheExtension cacheExtension) {
    init();
    super.registerCacheExtension(cacheExtension);
}
项目:ehcache-extensions    文件:EhcacheDelegateAdapter.java   
@Override
public void unregisterCacheExtension(CacheExtension cacheExtension) {
    init();
    super.unregisterCacheExtension(cacheExtension);
}
项目:ehcache-extensions    文件:EhcacheDelegatedDecoratorAdapter.java   
@Override
public List<CacheExtension> getRegisteredCacheExtensions() {
    init();
    return super.getRegisteredCacheExtensions();
}
项目:ehcache-extensions    文件:EhcacheDelegatedDecoratorAdapter.java   
@Override
public void registerCacheExtension(CacheExtension cacheExtension) {
    init();
    super.registerCacheExtension(cacheExtension);
}
项目:ehcache-extensions    文件:EhcacheDelegatedDecoratorAdapter.java   
@Override
public void unregisterCacheExtension(CacheExtension cacheExtension) {
    init();
    super.unregisterCacheExtension(cacheExtension);
}