Annotation Interface ViewPolicy
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(ViewPolicyContainer.class)
public @interface ViewPolicy
Defines view resource policy in annotated resource role. Multiple
ViewPolicy annotations may be placed on a single
method. ViewPolicy 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 {
@ViewPolicy(viewIds = {"view1", "view2"})
@ViewPolicy(viewClasses = {TestView1.class, TestView2.class})
void views();
}
- See Also:
-
Optional Element Summary
Optional Elements