Class CacheManagerCustomizer

  • 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
    • Constructor Detail

      • CacheManagerCustomizer

        public CacheManagerCustomizer()
    • Method Detail

      • configure

        public void configure​(String name,
                              org.apache.camel.Component target)
        Specified by:
        configure in interface org.apache.camel.spi.ComponentCustomizer
      • isEnabled

        public boolean isEnabled​(String name,
                                 org.apache.camel.Component target)
        Specified by:
        isEnabled in interface org.apache.camel.spi.ComponentCustomizer
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.apache.camel.spi.ComponentCustomizer
        Specified by:
        getOrder in interface org.apache.camel.Ordered
      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.spi.HasId