use of org.apache.shiro.event.support.DefaultEventBus in project shiro by apache.
the class CachingSecurityManager method destroy.
/**
* Destroys the {@link #getCacheManager() cacheManager} via {@link LifecycleUtils#destroy LifecycleUtils.destroy}.
*/
public void destroy() {
LifecycleUtils.destroy(getCacheManager());
this.cacheManager = null;
LifecycleUtils.destroy(getEventBus());
this.eventBus = new DefaultEventBus();
}
use of org.apache.shiro.event.support.DefaultEventBus in project shiro by apache.
the class ReflectionBuilder method createDefaultObjectMap.
// @since 1.3
private Map<String, Object> createDefaultObjectMap() {
Map<String, Object> map = new LinkedHashMap<String, Object>();
map.put(EVENT_BUS_NAME, new DefaultEventBus());
return map;
}
Aggregations