Java 类org.springframework.boot.autoconfigure.cache.CacheType 实例源码

项目:infinispan-spring-boot    文件:InfinispanRemoteAutoConfiguration.java   
@Override
public boolean matches(ConditionContext ctx, AnnotatedTypeMetadata atm) {
   String cacheType = ctx.getEnvironment().getProperty("spring.cache.type");
   return cacheType == null || CacheType.INFINISPAN.name().equalsIgnoreCase(cacheType);
}
项目:infinispan-spring-boot    文件:InfinispanEmbeddedCacheManagerChecker.java   
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
    String cacheType = context.getEnvironment().getProperty("spring.cache.type");

    return cacheType == null || CacheType.INFINISPAN.name().equalsIgnoreCase(cacheType);
}