- All Implemented Interfaces:
org.apache.camel.Ordered, org.apache.camel.spi.ComponentCustomizer, org.apache.camel.spi.HasId
@Configuration(proxyBeanMethods=false)
@ConditionalOnBean({org.apache.camel.spring.boot.CamelAutoConfiguration.class,org.ehcache.CacheManager.class})
@ConditionalOnHierarchicalProperties({"camel.component.customizer","camel.component.ehcache.customizer","camel.component.ehcache.customizer.cache-manager"})
@AutoConfigureAfter(org.apache.camel.spring.boot.CamelAutoConfiguration.class)
@EnableConfigurationProperties(CacheManagerCustomizerConfiguration.class)
public class CacheManagerCustomizer
extends Object
implements org.apache.camel.spi.HasId, org.apache.camel.spi.ComponentCustomizer
A simple implementation of ComponentCustomizer that auto discovers a
CacheManager instance and bind it to the EhcacheComponent
component.
This customizer can be disabled/enabled with different strategies:
1. globally using:
camel.component.customizer.enable = true/false
2. for component:
camel.component.ehcache.customizer.enabled = true/false
3. individually:
camel.component.ehcache.customizer.cache-manager.enabled = true/false