Class ContainerEmbeddedCacheManagerFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

    public class ContainerEmbeddedCacheManagerFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>
    FactoryBean for creating a CacheManager for a pre-defined CacheContainer.

    Useful when the cache container is defined outside the application (e.g. provided by the application server)

    Author:
    Marius Bogoevici
    • Constructor Detail

      • ContainerEmbeddedCacheManagerFactoryBean

        public ContainerEmbeddedCacheManagerFactoryBean​(EmbeddedCacheManager cacheContainer)
    • Method Detail

      • getObject

        public org.springframework.cache.CacheManager getObject()
                                                         throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>
        Throws:
        java.lang.Exception
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>