List of usage examples for org.springframework.cache.support NoOpCacheManager NoOpCacheManager
NoOpCacheManager
From source file:com.coffeebeans.services.config.caching.CachingConfig.java
@Bean @Override/* w ww . j av a 2s . c o m*/ public CacheManager cacheManager() { List<CacheManager> cacheManagers = new ArrayList<>(); if (EnvironmentEnum.LOCAL == Environment.resoveEnv()) { cacheManagers.add(new NoOpCacheManager()); } else { cacheManagers.add(this.redisCacheManager); } CompositeCacheManager cacheManager = new CompositeCacheManager(); cacheManager.setCacheManagers(cacheManagers); cacheManager.setFallbackToNoOpCache(true); return cacheManager; }
From source file:com.cedac.security.acls.mongo.MongoMutableAclServiceTests.java
@Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); Mongo mongo = embeddedMongoDbRule.getDatabaseOperation().connectionManager(); final AclCache aclCache = new SpringCacheBasedAclCache(new NoOpCacheManager().getCache("acl"), pgs, aas); fixture = new MongoMutableAclService(mongo, "test", aclCache, pgs, aas); fixture.afterPropertiesSet();/*from w w w .j av a 2 s . c o m*/ SecurityContextHolder.getContext() .setAuthentication(new PreAuthenticatedAuthenticationToken("admin@cedac.com", "password")); }
From source file:com.cedac.security.acls.mongo.MongoAclServiceTests.java
@Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); Mongo mongo = embeddedMongoDbRule.getDatabaseOperation().connectionManager(); final AclCache aclCache = new SpringCacheBasedAclCache(new NoOpCacheManager().getCache("acl"), pgs, aas); fixture = new MongoAclService(mongo, "test", aclCache, pgs, aas); fixture.afterPropertiesSet();//from w ww . jav a 2 s. com }
From source file:org.kuali.rice.kim.impl.permission.PermissionServiceImpl.java
public PermissionServiceImpl() { this.cacheManager = new NoOpCacheManager(); }
From source file:org.kuali.rice.kim.impl.role.RoleServiceImpl.java
public RoleServiceImpl() { this.cacheManager = new NoOpCacheManager(); }