public void shutdown() { if (delegate instanceof CustomAuthorizer) { ((CustomAuthorizer) delegate).shutdown(); } else if (delegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) delegate).shutdown(); } }
public void shutdown() { if (delegate instanceof CustomAuthorizer) { ((CustomAuthorizer) delegate).shutdown(); } else if (delegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) delegate).shutdown(); } }
public void shutdown() { if (delegate instanceof CustomAuthorizer) { ((CustomAuthorizer) delegate).shutdown(); } else if (delegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) delegate).shutdown(); } }
public void setDelegate(Authorizer delegate) { assert delegate != null : "null delegate"; Authorizer currentDelegate = this.delegate; if (delegate instanceof CustomAuthorizer) { AuthorizerDescription description = ((CustomAuthorizer) delegate).setAuthorizerConfiguration(writableAuthorizerConfiguration); writableAuthorizerConfiguration.setAuthorizerDescription(description); } else { writableAuthorizerConfiguration.setAuthorizerDescription(delegate.getDescription()); } this.delegate = delegate; if (currentDelegate instanceof CustomAuthorizer) { ((CustomAuthorizer) currentDelegate).shutdown(); } else if (currentDelegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) currentDelegate).shutdown(); } }
public void setDelegate(Authorizer delegate) { assert delegate != null : "null delegate"; Authorizer currentDelegate = this.delegate; if (delegate instanceof CustomAuthorizer) { AuthorizerDescription description = ((CustomAuthorizer) delegate).setAuthorizerConfiguration(writableAuthorizerConfiguration); writableAuthorizerConfiguration.setAuthorizerDescription(description); } else { writableAuthorizerConfiguration.setAuthorizerDescription(delegate.getDescription()); } this.delegate = delegate; if (currentDelegate instanceof CustomAuthorizer) { ((CustomAuthorizer) currentDelegate).shutdown(); } else if (currentDelegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) currentDelegate).shutdown(); } }
public void setDelegate(Authorizer delegate) { assert delegate != null : "null delegate"; Authorizer currentDelegate = this.delegate; if (delegate instanceof CustomAuthorizer) { AuthorizerDescription description = ((CustomAuthorizer) delegate).setAuthorizerConfiguration(writableAuthorizerConfiguration); writableAuthorizerConfiguration.setAuthorizerDescription(description); } else { writableAuthorizerConfiguration.setAuthorizerDescription(delegate.getDescription()); } this.delegate = delegate; if (currentDelegate instanceof CustomAuthorizer) { ((CustomAuthorizer) currentDelegate).shutdown(); } else if (currentDelegate instanceof StandardRBACAuthorizer) { ((StandardRBACAuthorizer) currentDelegate).shutdown(); } }