Search in sources :

Example 1 with DefaultEventBus

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();
}
Also used : DefaultEventBus(org.apache.shiro.event.support.DefaultEventBus)

Example 2 with 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;
}
Also used : DefaultEventBus(org.apache.shiro.event.support.DefaultEventBus) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

DefaultEventBus (org.apache.shiro.event.support.DefaultEventBus)2 LinkedHashMap (java.util.LinkedHashMap)1