Class AbstractEmbeddedCacheManagerFactory

java.lang.Object
org.infinispan.spring.embedded.AbstractEmbeddedCacheManagerFactory
Direct Known Subclasses:
InfinispanEmbeddedCacheManagerFactoryBean, SpringEmbeddedCacheManagerFactoryBean

public class AbstractEmbeddedCacheManagerFactory extends Object

An abstract base class for factories creating cache managers that are backed by an EmbeddedCacheManager.

Author:
Olaf Bergner, Marius Bogoevici
  • Constructor Details

    • AbstractEmbeddedCacheManagerFactory

      public AbstractEmbeddedCacheManagerFactory()
  • Method Details

    • createBackingEmbeddedCacheManager

      protected EmbeddedCacheManager createBackingEmbeddedCacheManager() throws IOException
      Throws:
      IOException
    • setConfigurationFileLocation

      public void setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)

      Sets the location of the configuration file which will be used to configure the EmbeddedCacheManager the SpringEmbeddedCacheManager created by this FactoryBean delegates to. If no location is supplied, Infinispan's default configuration will be used.

      Note that configuration settings defined via using explicit setters exposed by this FactoryBean take precedence over those defined in the configuration file pointed to by configurationFileLocation.

      Parameters:
      configurationFileLocation - The location of the configuration file which will be used to configure the EmbeddedCacheManager the SpringEmbeddedCacheManager created by this FactoryBean delegates to
    • addCustomGlobalConfiguration

      public void addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
      Sets the GlobalConfigurationBuilder to use when creating an EmbeddedCacheManager.
      Parameters:
      gcb - the GlobalConfigurationBuilder instance.
    • addCustomCacheConfiguration

      public void addCustomCacheConfiguration(ConfigurationBuilder builder)
      Sets the ConfigurationBuilder to use when creating an EmbeddedCacheManager.
      Parameters:
      builder - the ConfigurationBuilder instance.