当前位置: 首页>>代码示例>>Java>>正文


Java OptionalFeature类代码示例

本文整理汇总了Java中javax.cache.configuration.OptionalFeature的典型用法代码示例。如果您正苦于以下问题:Java OptionalFeature类的具体用法?Java OptionalFeature怎么用?Java OptionalFeature使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OptionalFeature类属于javax.cache.configuration包,在下文中一共展示了OptionalFeature类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public boolean isSupported(final OptionalFeature optionalFeature) {
  if (optionalFeature == null) {
    throw new NullPointerException();
  }

  // this switch statement written w/o "default:" to let use know if a new
  // optional feature is added in the spec
  switch (optionalFeature) {
  case STORE_BY_REFERENCE:
    return true;
  }

  throw new IllegalArgumentException("Unknown OptionalFeature: " + optionalFeature.name());
}
 
开发者ID:ehcache,项目名称:ehcache3,代码行数:19,代码来源:EhcacheCachingProvider.java

示例2: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature)
{
	if (optionalFeature == OptionalFeature.STORE_BY_REFERENCE)
		return true;

	// Unknown / new feature => not supported 
	return false;
}
 
开发者ID:trivago,项目名称:triava,代码行数:10,代码来源:TCacheProvider.java

示例3: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature) {
    switch (optionalFeature) {
        case STORE_BY_REFERENCE:
            return true;
    }
    return false;
}
 
开发者ID:diennea,项目名称:blazingcache,代码行数:9,代码来源:BlazingCacheProvider.java

示例4: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature) {
    switch (optionalFeature) {
        case STORE_BY_REFERENCE:
            return false;
        default:
            return false;
    }
}
 
开发者ID:couchbaselabs,项目名称:couchbase-java-cache,代码行数:10,代码来源:CouchbaseCachingProvider.java

示例5: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Test
public void isSupported() {
  CachingProvider provider = Caching.getCachingProvider();

  OptionalFeature[] features = OptionalFeature.values();
  for (OptionalFeature feature : features) {
    boolean value = provider.isSupported(feature);
    Logger.getLogger(getClass().getName()).info("Optional feature " + feature + " supported=" + value);
  }
}
 
开发者ID:cache2k,项目名称:cache2k,代码行数:11,代码来源:CachingTest.java

示例6: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature) {
    // TODO implement support of store_by_reference
    return false;
}
 
开发者ID:qq1588518,项目名称:JRediClients,代码行数:6,代码来源:JCachingProvider.java

示例7: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
public boolean isSupported(OptionalFeature optionalFeature) {
    return false;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:4,代码来源:DefaultCachingProvider.java

示例8: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature)
{
    return optionalFeature.equals(OptionalFeature.STORE_BY_REFERENCE);
}
 
开发者ID:ocafebabe,项目名称:guava-jcache,代码行数:6,代码来源:GuavaCachingProvider.java

示例9: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature) {
	return false;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:MockCachingProvider.java

示例10: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature optionalFeature) {
    if(optionalFeature == optionalFeature.STORE_BY_REFERENCE)
        return true;
    return false;
}
 
开发者ID:Alachisoft,项目名称:TayzGrid,代码行数:7,代码来源:TayzGridCachingProvider.java

示例11: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
/** {@inheritDoc} */
@Override public boolean isSupported(OptionalFeature optionalFeature) {
    return false;
}
 
开发者ID:apache,项目名称:ignite,代码行数:5,代码来源:CachingProvider.java

示例12: isExcluded

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
/**
 * @see org.jsr107.tck.testutil.ExcludeListExcluder#isExcluded(String)
 */
@Override
protected boolean isExcluded(String methodName) {
  return "simpleAPINoGenericsAndNoTypeEnforcementStoreByReference".equals(methodName) && !cacheManager.getCachingProvider().isSupported(OptionalFeature.STORE_BY_REFERENCE) || super.isExcluded(methodName);
}
 
开发者ID:cache2k,项目名称:cache2k,代码行数:8,代码来源:TypesTest.java

示例13: isSupported

import javax.cache.configuration.OptionalFeature; //导入依赖的package包/类
@Override
public boolean isSupported(OptionalFeature v) {
  if (v == OptionalFeature.STORE_BY_REFERENCE) { return true; }
  return false;
}
 
开发者ID:cache2k,项目名称:cache2k,代码行数:6,代码来源:JCacheProvider.java


注:本文中的javax.cache.configuration.OptionalFeature类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。