Annotation Interface ScreenPolicy
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(ScreenPolicyContainer.class)
public @interface ScreenPolicy
Defines screen resource policy in annotated resource role. Multiple
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();
}
- See Also:
-
Optional Element Summary
Optional Elements