Class TenantAwareEhCacheManagerFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<net.sf.ehcache.CacheManager>, org.springframework.beans.factory.InitializingBean

    public class TenantAwareEhCacheManagerFactoryBean
    extends org.springframework.cache.ehcache.EhCacheManagerFactoryBean
    FactoryBean that exposes a tenant-aware EhCache CacheManager instance (independent or shared), configured from a specified config location.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CACHE_SUFFIX_PROPERTY  
      • Fields inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean

        logger
      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      void setCacheNamePrefix​(java.lang.String cacheNamePrefix)  
      • Methods inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean

        destroy, getObject, getObjectType, isSingleton, setAcceptExisting, setCacheManagerName, setConfigLocation, setShared
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CACHE_SUFFIX_PROPERTY

        public static final java.lang.String CACHE_SUFFIX_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • TenantAwareEhCacheManagerFactoryBean

        public TenantAwareEhCacheManagerFactoryBean()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.cache.ehcache.EhCacheManagerFactoryBean
      • setCacheNamePrefix

        public void setCacheNamePrefix​(java.lang.String cacheNamePrefix)