public void setCachePermissions(boolean cachePermissions) {
this.cachePermissions = cachePermissions;
}
@Autowired
public void setPrincipalCache(@Qualifier(CacheFactory.PRINCIPAL_CACHE) Ehcache principalCache) {
this.principalCache = new SelfPopulatingCache(principalCache, new CacheEntryFactory() {
@Override
public Object createEntry(Object key) throws Exception {
final Tuple<String, Class> principalKey = (Tuple<String, Class>)key;
return primNewPrincipal(principalKey.first, principalKey.second);
}