Package org.infinispan.spring.embedded
Class AbstractEmbeddedCacheManagerFactory
java.lang.Object
org.infinispan.spring.embedded.AbstractEmbeddedCacheManagerFactory
- Direct Known Subclasses:
InfinispanEmbeddedCacheManagerFactoryBean,SpringEmbeddedCacheManagerFactoryBean
An abstract base class for factories creating cache managers that are backed by an EmbeddedCacheManager.
- Author:
- Olaf Bergner, Marius Bogoevici
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets theConfigurationBuilderto use when creating anEmbeddedCacheManager.voidSets theGlobalConfigurationBuilderto use when creating anEmbeddedCacheManager.protected EmbeddedCacheManagervoidsetConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation) Sets theof the configuration file which will be used to configure thelocationtheEmbeddedCacheManagercreated by thisSpringEmbeddedCacheManagerFactoryBeandelegates to.
-
Constructor Details
-
AbstractEmbeddedCacheManagerFactory
public AbstractEmbeddedCacheManagerFactory()
-
-
Method Details
-
createBackingEmbeddedCacheManager
- 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
Sets theGlobalConfigurationBuilderto use when creating anEmbeddedCacheManager.- Parameters:
gcb- theGlobalConfigurationBuilderinstance.
-
addCustomCacheConfiguration
Sets theConfigurationBuilderto use when creating anEmbeddedCacheManager.- Parameters:
builder- theConfigurationBuilderinstance.
-