public class JCacheManagerFactoryBean 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
FactoryBean
for a JCache CacheManager
,
obtaining a pre-defined CacheManager by name through the standard
JCache Caching
class.Caching.getCacheManager()
,
Caching.getCacheManager(String)
Constructor and Description |
---|
JCacheManagerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
javax.cache.CacheManager |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setCacheManagerName(String cacheManagerName)
Specify the name of the desired CacheManager.
|
public void setCacheManagerName(String cacheManagerName)
Caching.DEFAULT_CACHE_MANAGER_NAME
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
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.DisposableBean