Class ContainerEmbeddedCacheManagerFactoryBean

java.lang.Object
org.infinispan.spring.embedded.provider.ContainerEmbeddedCacheManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

public class ContainerEmbeddedCacheManagerFactoryBean 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 Details

    • ContainerEmbeddedCacheManagerFactoryBean

      public ContainerEmbeddedCacheManagerFactoryBean(EmbeddedCacheManager cacheContainer)
  • Method Details

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