use of org.apache.shiro.cache.ehcache.EhCacheManager in project tesla by linking12.
the class AuthzConfig method getEhCacheManager.
@Bean
public EhCacheManager getEhCacheManager() {
EhCacheManager em = new EhCacheManager();
em.setCacheManagerConfigFile("classpath:config/ehcache.xml");
return em;
}
use of org.apache.shiro.cache.ehcache.EhCacheManager in project moon by gentoo111.
the class EhcacheConfig method cacheManager.
@Bean("ehCacheManager")
public EhCacheManager cacheManager() {
EhCacheManager cacheManager = new EhCacheManager();
cacheManager.setCacheManagerConfigFile("classpath:ehcache.xml");
return cacheManager;
}
use of org.apache.shiro.cache.ehcache.EhCacheManager in project vip by guangdada.
the class ShiroConfig method getCacheShiroManager.
/**
* 缓存管理器 使用Ehcache实现
*/
@Bean
public CacheManager getCacheShiroManager(EhCacheManagerFactoryBean ehcache) {
EhCacheManager ehCacheManager = new EhCacheManager();
ehCacheManager.setCacheManager(ehcache.getObject());
return ehCacheManager;
}
use of org.apache.shiro.cache.ehcache.EhCacheManager in project mica2 by obiba.
the class SecurityManagerFactory method initializeCacheManager.
private void initializeCacheManager(DefaultWebSecurityManager dsm) {
if (dsm.getCacheManager() == null) {
EhCacheManager ehCacheManager = new EhCacheManager();
ehCacheManager.setCacheManager(cacheManager);
dsm.setCacheManager(ehCacheManager);
}
}
use of org.apache.shiro.cache.ehcache.EhCacheManager in project killbill by killbill.
the class EhCacheManagerProvider method get.
@Override
public EhCacheManager get() {
final EhCacheManager shiroEhCacheManager = new EhCacheManager();
// Same EhCache manager instance as the rest of the system
shiroEhCacheManager.setCacheManager(ehCacheCacheManager);
if (securityManager instanceof DefaultSecurityManager) {
// For RBAC only (see also KillbillJdbcTenantRealmProvider)
((DefaultSecurityManager) securityManager).setCacheManager(shiroEhCacheManager);
}
return shiroEhCacheManager;
}
Aggregations