package com.giffing.bucket4j.spring.boot.starter.config.cache.infinispan;

import org.infinispan.manager.CacheContainer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;

import com.giffing.bucket4j.spring.boot.starter.config.cache.AsyncCacheResolver;

@ConditionalOnClass({ CacheContainer.class })
@ConditionalOnBean(CacheContainer.class)
public class InfinispanBucket4jCacheConfiguration {
	
	private CacheContainer cacheContainer;
		
	public InfinispanBucket4jCacheConfiguration(CacheContainer cacheContainer) {
		this.cacheContainer = cacheContainer;
	}
	
	public AsyncCacheResolver infinispanCacheResolver() {
		return new InfinispanCacheResolver(cacheContainer);
	}
}

@@ -356,16 +356,32 @@
 ver;%0D%0A%0D%0A
+@Configuration%0D%0A
 @Conditi
@@ -689,16 +689,24 @@
 %0A%09%7D%0D%0A%09%0D%0A
+%09@Bean%0D%0A
 %09public 

Allow spring boot to pick up Infini span config (#52)