Package org.infinispan.spring
Class AbstractEmbeddedCacheManagerFactory
- java.lang.Object
-
- org.infinispan.spring.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 Summary
Constructors Constructor Description AbstractEmbeddedCacheManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomCacheConfiguration(ConfigurationBuilder builder)Sets theConfigurationBuilderto use when creating anEmbeddedCacheManager.voidaddCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)Sets theGlobalConfigurationBuilderto use when creating anEmbeddedCacheManager.protected EmbeddedCacheManagercreateBackingEmbeddedCacheManager()voidsetConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)Sets theof the configuration file which will be used to configure thelocationtheEmbeddedCacheManagercreated by thisSpringEmbeddedCacheManagerFactoryBeandelegates to.
-
-
-
Method Detail
-
createBackingEmbeddedCacheManager
protected EmbeddedCacheManager createBackingEmbeddedCacheManager() throws IOException
- Throws:
IOException
-
setConfigurationFileLocation
public void setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the
of the configuration file which will be used to configure thelocationtheEmbeddedCacheManagercreated by thisSpringEmbeddedCacheManagerFactoryBeandelegates 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
FactoryBeantake precedence over those defined in the configuration file pointed to byconfigurationFileLocation.- Parameters:
configurationFileLocation- Theof the configuration file which will be used to configure thelocationtheEmbeddedCacheManagercreated by thisSpringEmbeddedCacheManagerFactoryBeandelegates to
-
addCustomGlobalConfiguration
public void addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
Sets theGlobalConfigurationBuilderto use when creating anEmbeddedCacheManager.- Parameters:
gcb- theGlobalConfigurationBuilderinstance.
-
addCustomCacheConfiguration
public void addCustomCacheConfiguration(ConfigurationBuilder builder)
Sets theConfigurationBuilderto use when creating anEmbeddedCacheManager.- Parameters:
builder- theConfigurationBuilderinstance.
-
-