Package org.apache.shiro.cache.jcache
Class AxelorJCacheManager
java.lang.Object
org.apache.shiro.cache.jcache.JCacheManager
org.apache.shiro.cache.jcache.AxelorJCacheManager
- All Implemented Interfaces:
org.apache.shiro.cache.CacheManager
,org.apache.shiro.lang.util.Destroyable
,org.apache.shiro.lang.util.Initializable
public class AxelorJCacheManager
extends org.apache.shiro.cache.jcache.JCacheManager
Shiro JCache Manager where we can pass configuration to created caches.
-
Constructor Summary
ConstructorsConstructorDescriptionAxelorJCacheManager
(javax.cache.configuration.Configuration<Object, Object> config, javax.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescription<K,
V> org.apache.shiro.cache.Cache <K, V> <K,
V> javax.cache.configuration.Configuration <K, V> protected void
onAppShutdownEvent
(ShutdownEvent event) Methods inherited from class org.apache.shiro.cache.jcache.JCacheManager
destroy, getCacheConfig, getCacheManager, init, setCacheConfig, setCacheManager
-
Constructor Details
-
AxelorJCacheManager
-
-
Method Details
-
getCache
public <K,V> org.apache.shiro.cache.Cache<K,V> getCache(String name) throws javax.cache.CacheException - Specified by:
getCache
in interfaceorg.apache.shiro.cache.CacheManager
- Overrides:
getCache
in classorg.apache.shiro.cache.jcache.JCacheManager
- Throws:
javax.cache.CacheException
-
getConfig
public <K,V> javax.cache.configuration.Configuration<K,V> getConfig() -
onAppShutdownEvent
-