org.springframework.cache.ehcache.EhCacheFactoryBean Java Examples

The following examples show how to use org.springframework.cache.ehcache.EhCacheFactoryBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeviceClassCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean deviceClassEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("deviceClassCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #2
Source File: ACLContext.java    From tutorials with MIT License 5 votes vote down vote up
@Bean
public EhCacheFactoryBean aclEhCacheFactoryBean() {
    EhCacheFactoryBean ehCacheFactoryBean = new EhCacheFactoryBean();
    ehCacheFactoryBean.setCacheManager(aclCacheManager().getObject());
    ehCacheFactoryBean.setCacheName("aclCache");
    return ehCacheFactoryBean;
}
 
Example #3
Source File: SupervisionCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean subEquipmentEventEhcache() {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("subEquipmentEventCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #4
Source File: SupervisionCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean equipmentEventEhcache() {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("equipmentEventCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #5
Source File: SupervisionCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean processEventEhcache() {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("processEventCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #6
Source File: AliveTimerCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean aliveTimerEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("aliveTimerCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #7
Source File: CommFaultTagCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean commFaultTagEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("commFaultTagCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #8
Source File: SubEquipmentCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean subEquipmentEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("subEquipmentCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #9
Source File: EquipmentCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean equipmentEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("equipmentCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #10
Source File: ControlTagCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean controlTagEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("controlCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #11
Source File: RuleTagCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean ruleTagEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("ruleCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #12
Source File: DataTagCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean dataTagEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("tagCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #13
Source File: ProcessCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean processEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("processCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #14
Source File: DeviceCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean deviceEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("deviceCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #15
Source File: CommandTagCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean commandTagEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("commandCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #16
Source File: AlarmCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean alarmEhcache(CacheManager cacheManager) {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("alarmCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #17
Source File: ClusterCacheConfig.java    From c2mon with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Bean
public EhCacheFactoryBean clusterEhcache() {
  EhCacheFactoryBean factory = new EhCacheFactoryBean();
  factory.setCacheName("clusterCache");
  factory.setCacheManager(cacheManager);
  return factory;
}
 
Example #18
Source File: AclConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public Ehcache ehcache(){
    EhCacheFactoryBean cacheFactoryBean = new EhCacheFactoryBean();
    cacheFactoryBean.setCacheManager(cacheManager());
    cacheFactoryBean.setCacheName("aclCache");
    cacheFactoryBean.setMaxBytesLocalHeap("1M");
    cacheFactoryBean.setMaxEntriesLocalHeap(0L);
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();
}
 
Example #19
Source File: AclConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public Ehcache ehcache(){
    EhCacheFactoryBean cacheFactoryBean = new EhCacheFactoryBean();
    cacheFactoryBean.setCacheManager(cacheManager());
    cacheFactoryBean.setCacheName("aclCache");
    cacheFactoryBean.setMaxBytesLocalHeap("1M");
    cacheFactoryBean.setMaxEntriesLocalHeap(0L);
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();
}
 
Example #20
Source File: AclConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public Ehcache ehcache(){
    EhCacheFactoryBean cacheFactoryBean = new EhCacheFactoryBean();
    cacheFactoryBean.setCacheManager(cacheManager());
    cacheFactoryBean.setCacheName("aclCache");
    cacheFactoryBean.setMaxBytesLocalHeap("1M");
    cacheFactoryBean.setMaxEntriesLocalHeap(0L);
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();
}
 
Example #21
Source File: AclConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public Ehcache ehcache(){
    EhCacheFactoryBean cacheFactoryBean = new EhCacheFactoryBean();
    cacheFactoryBean.setCacheManager(cacheManager());
    cacheFactoryBean.setCacheName("aclCache");
    cacheFactoryBean.setMaxBytesLocalHeap("1M");
    cacheFactoryBean.setMaxEntriesLocalHeap(0L);
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();
}
 
Example #22
Source File: AclConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public Ehcache ehcache(){
    EhCacheFactoryBean cacheFactoryBean = new EhCacheFactoryBean();
    cacheFactoryBean.setCacheManager(cacheManager());
    cacheFactoryBean.setCacheName("aclCache");
    cacheFactoryBean.setMaxBytesLocalHeap("1M");
    cacheFactoryBean.setMaxEntriesLocalHeap(0L);
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();
}
 
Example #23
Source File: SpringMvcCacheConfig.java    From Hands-On-High-Performance-with-Spring-5 with MIT License 4 votes vote down vote up
@Bean
public EhCacheFactoryBean ehCacheFactoryBean() {
	EhCacheFactoryBean ehCacheFactory = new EhCacheFactoryBean();
	ehCacheFactory.setCacheManager(cacheManagerFactoryBean().getObject());
	return ehCacheFactory;
}