@Override public boolean matches(ConditionContext ctx, AnnotatedTypeMetadata atm) { String cacheType = ctx.getEnvironment().getProperty("spring.cache.type"); return cacheType == null || CacheType.INFINISPAN.name().equalsIgnoreCase(cacheType); }
@Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { String cacheType = context.getEnvironment().getProperty("spring.cache.type"); return cacheType == null || CacheType.INFINISPAN.name().equalsIgnoreCase(cacheType); }