@Target(value=METHOD) @Retention(value=RUNTIME) @Repeatable(value=ScreenPolicyContainer.class) public @interface ScreenPolicy
ScreenPolicy
annotations may be placed on a single
method. ScreenPolicy
annotation may present on multiple methods of the same class. Annotated method may have
any name and return type.
Example:
@ResourceRole(name = "My Role", code = "myRole") public interface MyRole { @ScreenPolicy(screenIds = {"screen1", "screen2"}) @ScreenPolicy(screenClasses = {TestScreen1.class, TestScreen2.class}) void screens(); }
ResourceRole
,
ResourcePolicy
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class[] |
screenClasses |
java.lang.String[] |
screenIds |