@Documented @Inherited @Retention(value=RUNTIME) @Target(value={METHOD,TYPE,CONSTRUCTOR}) public @interface RequirePrivilege
| Modifier and Type | Required Element and Description |
|---|---|
String |
value |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
before
Set the time of check method access permission, usually it should be true But in rare case when it needs to check after the method executed (e.g.
|
public abstract String value
public abstract boolean before
Set the time of check method access permission, usually it should be true But in rare case when it needs to check after the method executed (e.g. constructor) then it could be set to false;
true if authorizatio shall happen before method invocation or false otherwiseSCopyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.