Annotation Type RestrictionPolicy
-
@Retention(RUNTIME) @Target(TYPE) @Documented public @interface RestrictionPolicy
An annotation that defines how multiple@RestrictedToannotations are to be combined. If more than one@RestrictedToannotation is present, this annotation is mandatory if the default implementation ofCommand.getRestrictionChain()is used.Alternatively to using this annotation the
Command.getRestrictionChain()method can be overwritten. If that method is overwritten and this annotation is used, the method overwrite takes precedence. That method is also what should be used to retrieve the configured restrictions.- See Also:
Command.getRestrictionChain()
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description RestrictionPolicy.PolicyvalueReturns the restriction policy for the annotated command.
-
-
-
Element Detail
-
value
RestrictionPolicy.Policy value
Returns the restriction policy for the annotated command.- Returns:
- the restriction policy for the annotated command
-
-