public class MergeJCacheManagerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
CachingProvider to create a CacheManager.
The defaults assume you are using EhCache, but this could be used for other JCache implementations.| Modifier and Type | Field and Description |
|---|---|
protected URI |
cacheManagerUri |
protected List<org.springframework.core.io.Resource> |
configLocations |
protected Set<String> |
mergedCacheConfigLocations |
| Constructor and Description |
|---|
MergeJCacheManagerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected File |
createTemporaryMergeXml(org.springframework.core.io.Resource mergedJcacheResource) |
void |
destroy() |
protected ClassLoader |
getDefaultClassLoaderForProvider() |
javax.cache.CacheManager |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setCacheManagerProperties(Properties cacheManagerProperties) |
void |
setCacheManagerUri(URI cacheManagerUri) |
void |
setConfigLocations(List<org.springframework.core.io.Resource> configLocations) |
protected List<org.springframework.core.io.Resource> configLocations
protected URI cacheManagerUri
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void setConfigLocations(List<org.springframework.core.io.Resource> configLocations) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException@Nullable public javax.cache.CacheManager getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setCacheManagerProperties(@Nullable
Properties cacheManagerProperties)
public void setCacheManagerUri(@NonNull
URI cacheManagerUri)
protected ClassLoader getDefaultClassLoaderForProvider()
protected File createTemporaryMergeXml(org.springframework.core.io.Resource mergedJcacheResource) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2020. All rights reserved.