/** * Calls {@link org.apache.shiro.mgt.AuthorizingSecurityManager#afterCacheManagerSet() super.afterCacheManagerSet()} and then immediately calls * {@link #applyCacheManagerToSessionManager() applyCacheManagerToSessionManager()} to ensure the * <code>CacheManager</code> is applied to the SessionManager as necessary. */ @Override protected void afterCacheManagerSet() { super.afterCacheManagerSet(); applyCacheManagerToSessionManager(); }
public void destroy() { LifecycleUtils.destroy(getSessionManager()); this.sessionManager = null; super.destroy(); } }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
/** * Sets any configured EventBus on the SessionManager if necessary. * * @since 1.3 */ @Override protected void afterEventBusSet() { super.afterEventBusSet(); applyEventBusToSessionManager(); }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
/** * Sets any configured EventBus on the SessionManager if necessary. * * @since 1.3 */ @Override protected void afterEventBusSet() { super.afterEventBusSet(); applyEventBusToSessionManager(); }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
/** * Calls {@link org.apache.shiro.mgt.AuthorizingSecurityManager#afterCacheManagerSet() super.afterCacheManagerSet()} and then immediately calls * {@link #applyCacheManagerToSessionManager() applyCacheManagerToSessionManager()} to ensure the * <code>CacheManager</code> is applied to the SessionManager as necessary. */ @Override protected void afterCacheManagerSet() { super.afterCacheManagerSet(); applyCacheManagerToSessionManager(); }
public void destroy() { LifecycleUtils.destroy(getSessionManager()); this.sessionManager = null; super.destroy(); } }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
/** * Calls {@link org.apache.shiro.mgt.AuthorizingSecurityManager#afterCacheManagerSet() super.afterCacheManagerSet()} and then immediately calls * {@link #applyCacheManagerToSessionManager() applyCacheManagerToSessionManager()} to ensure the * <code>CacheManager</code> is applied to the SessionManager as necessary. */ protected void afterCacheManagerSet() { super.afterCacheManagerSet(); applyCacheManagerToSessionManager(); }
public void destroy() { LifecycleUtils.destroy(getSessionManager()); this.sessionManager = null; super.destroy(); } }