@Configuration @ConditionalOnClass(value=org.infinispan.spring.provider.SpringEmbeddedCacheManager.class) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class) @Conditional(value=org.springframework.boot.autoconfigure.cache.CacheCondition.class) public class InfinispanCacheConfiguration extends Object
Constructor and Description |
---|
InfinispanCacheConfiguration(CacheProperties cacheProperties,
CacheManagerCustomizers customizers,
ObjectProvider<org.infinispan.configuration.cache.ConfigurationBuilder> defaultConfigurationBuilder) |
Modifier and Type | Method and Description |
---|---|
org.infinispan.spring.provider.SpringEmbeddedCacheManager |
cacheManager(org.infinispan.manager.EmbeddedCacheManager embeddedCacheManager) |
org.infinispan.manager.EmbeddedCacheManager |
infinispanCacheManager() |
public InfinispanCacheConfiguration(CacheProperties cacheProperties, CacheManagerCustomizers customizers, ObjectProvider<org.infinispan.configuration.cache.ConfigurationBuilder> defaultConfigurationBuilder)
@Bean public org.infinispan.spring.provider.SpringEmbeddedCacheManager cacheManager(org.infinispan.manager.EmbeddedCacheManager embeddedCacheManager)
@Bean(destroyMethod="stop") @ConditionalOnMissingBean public org.infinispan.manager.EmbeddedCacheManager infinispanCacheManager() throws IOException
IOException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.