当前位置: 首页>>代码示例>>Java>>正文


Java EhCacheManagerFactoryBean.setCacheManagerName方法代码示例

本文整理汇总了Java中org.springframework.cache.ehcache.EhCacheManagerFactoryBean.setCacheManagerName方法的典型用法代码示例。如果您正苦于以下问题:Java EhCacheManagerFactoryBean.setCacheManagerName方法的具体用法?Java EhCacheManagerFactoryBean.setCacheManagerName怎么用?Java EhCacheManagerFactoryBean.setCacheManagerName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.cache.ehcache.EhCacheManagerFactoryBean的用法示例。


在下文中一共展示了EhCacheManagerFactoryBean.setCacheManagerName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: cacheManager

import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; //导入方法依赖的package包/类
@Lazy
@Bean
public EhCacheManagerFactoryBean cacheManager() {
    final EhcacheProperties cache = casProperties.getTicket().getRegistry().getEhcache();
    final EhCacheManagerFactoryBean bean = new EhCacheManagerFactoryBean();
    bean.setConfigLocation(cache.getConfigLocation());
    bean.setShared(cache.isShared());
    bean.setCacheManagerName(cache.getCacheManagerName());
    return bean;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:11,代码来源:EhcacheTicketRegistryConfiguration.java

示例2: aclCache

import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; //导入方法依赖的package包/类
@Bean
EhCacheBasedAclCache aclCache() {
    EhCacheFactoryBean factoryBean = new EhCacheFactoryBean();
    EhCacheManagerFactoryBean cacheManager = new   EhCacheManagerFactoryBean();
    cacheManager.setAcceptExisting(true);
    cacheManager.setCacheManagerName(CacheManager.class.getName());
    cacheManager.afterPropertiesSet();

    factoryBean.setCacheName("aclCache");
    factoryBean.setCacheManager(cacheManager.getObject());
    //factoryBean.setMaxBytesLocalHeap("16M");
    //factoryBean.setMaxEntriesLocalHeap(0L);
    factoryBean.afterPropertiesSet();
    return new EhCacheBasedAclCache(factoryBean.getObject());
}
 
开发者ID:abixen,项目名称:abixen-platform,代码行数:16,代码来源:PlatformAclConfiguration.java

示例3: ehCacheManager

import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; //导入方法依赖的package包/类
@Bean(name = "cacheManager")
public EhCacheManagerFactoryBean ehCacheManager() throws IOException {
	EhCacheManagerFactoryBean factory = new EhCacheManagerFactoryBean();
	factory.setCacheManagerName(CacheManager.DEFAULT_NAME);
	factory.setShared(true);
	return factory;
}
 
开发者ID:grassrootza,项目名称:grassroot-platform,代码行数:8,代码来源:GrassrootCoreConfig.java

示例4: cacheManagerFactory

import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; //导入方法依赖的package包/类
@Bean
public EhCacheManagerFactoryBean cacheManagerFactory() {
  log.debug("Starting Ehcache");
  EhCacheManagerFactoryBean factoryBean = new EhCacheManagerFactoryBean();
  factoryBean.setCacheManagerName("agate");
  return factoryBean;
}
 
开发者ID:obiba,项目名称:agate,代码行数:8,代码来源:CacheConfiguration.java

示例5: cacheManagerFactory

import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; //导入方法依赖的package包/类
@Bean
public EhCacheManagerFactoryBean cacheManagerFactory() {
  log.debug("Starting Ehcache");
  EhCacheManagerFactoryBean factoryBean = new EhCacheManagerFactoryBean();
  factoryBean.setCacheManagerName("mica");

  return factoryBean;
}
 
开发者ID:obiba,项目名称:mica2,代码行数:9,代码来源:CacheConfiguration.java


注:本文中的org.springframework.cache.ehcache.EhCacheManagerFactoryBean.setCacheManagerName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。