org.springframework.cache.jcache
Class JCacheManagerFactoryBean
java.lang.Object
org.springframework.cache.jcache.JCacheManagerFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>, org.springframework.beans.factory.InitializingBean
public class JCacheManagerFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean
FactoryBean
for a JCache CacheManager
,
obtaining a pre-defined CacheManager by name through the standard
JCache Caching
class.
- Since:
- 3.2
- Author:
- Juergen Hoeller
- See Also:
Caching.getCacheManager()
,
Caching.getCacheManager(String)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCacheManagerFactoryBean
public JCacheManagerFactoryBean()
setCacheManagerName
public void setCacheManagerName(java.lang.String cacheManagerName)
- Specify the name of the desired CacheManager.
Default is JCache's default.
- See Also:
Caching.DEFAULT_CACHE_MANAGER_NAME
setBeanClassLoader
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
getObject
public javax.cache.CacheManager getObject()
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<javax.cache.CacheManager>