/** * 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()); } }
/** * 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()); } }
/** * 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()); } }