Class ContainerRemoteCacheManagerFactoryBean

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

    public class ContainerRemoteCacheManagerFactoryBean
    extends 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

      • ContainerRemoteCacheManagerFactoryBean

        public ContainerRemoteCacheManagerFactoryBean​(org.infinispan.client.hotrod.RemoteCacheManager cacheContainer)
    • Method Detail

      • getObject

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

        public 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>