Java Code Examples for org.springframework.cache.ehcache.EhCacheFactoryBean#setCacheManager()
The following examples show how to use
org.springframework.cache.ehcache.EhCacheFactoryBean#setCacheManager() .
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: ProcessCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean processEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("processCache"); factory.setCacheManager(cacheManager); return factory; }
Example 2
Source File: SupervisionCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean processEventEhcache() { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("processEventCache"); factory.setCacheManager(cacheManager); return factory; }
Example 3
Source File: AliveTimerCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean aliveTimerEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("aliveTimerCache"); factory.setCacheManager(cacheManager); return factory; }
Example 4
Source File: CommFaultTagCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean commFaultTagEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("commFaultTagCache"); factory.setCacheManager(cacheManager); return factory; }
Example 5
Source File: SupervisionCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean equipmentEventEhcache() { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("equipmentEventCache"); factory.setCacheManager(cacheManager); return factory; }
Example 6
Source File: ACLContext.java From tutorials with MIT License | 5 votes |
@Bean public EhCacheFactoryBean aclEhCacheFactoryBean() { EhCacheFactoryBean ehCacheFactoryBean = new EhCacheFactoryBean(); ehCacheFactoryBean.setCacheManager(aclCacheManager().getObject()); ehCacheFactoryBean.setCacheName("aclCache"); return ehCacheFactoryBean; }
Example 7
Source File: ControlTagCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean controlTagEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("controlCache"); factory.setCacheManager(cacheManager); return factory; }
Example 8
Source File: RuleTagCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean ruleTagEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("ruleCache"); factory.setCacheManager(cacheManager); return factory; }
Example 9
Source File: DataTagCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean dataTagEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("tagCache"); factory.setCacheManager(cacheManager); return factory; }
Example 10
Source File: DeviceClassCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean deviceClassEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("deviceClassCache"); factory.setCacheManager(cacheManager); return factory; }
Example 11
Source File: DeviceCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean deviceEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("deviceCache"); factory.setCacheManager(cacheManager); return factory; }
Example 12
Source File: CommandTagCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean commandTagEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("commandCache"); factory.setCacheManager(cacheManager); return factory; }
Example 13
Source File: AlarmCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean alarmEhcache(CacheManager cacheManager) { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("alarmCache"); factory.setCacheManager(cacheManager); return factory; }
Example 14
Source File: ClusterCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean clusterEhcache() { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("clusterCache"); factory.setCacheManager(cacheManager); return factory; }
Example 15
Source File: AclConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@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 16
Source File: AclConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@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 17
Source File: SupervisionCacheConfig.java From c2mon with GNU Lesser General Public License v3.0 | 5 votes |
@Bean public EhCacheFactoryBean subEquipmentEventEhcache() { EhCacheFactoryBean factory = new EhCacheFactoryBean(); factory.setCacheName("subEquipmentEventCache"); factory.setCacheManager(cacheManager); return factory; }
Example 18
Source File: AclConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@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 |
@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: SpringMvcCacheConfig.java From Hands-On-High-Performance-with-Spring-5 with MIT License | 4 votes |
@Bean public EhCacheFactoryBean ehCacheFactoryBean() { EhCacheFactoryBean ehCacheFactory = new EhCacheFactoryBean(); ehCacheFactory.setCacheManager(cacheManagerFactoryBean().getObject()); return ehCacheFactory; }