Annotation 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:
  • Element Details

    • screenIds

      String[] screenIds
      Default:
      {}
    • screenClasses

      Class[] screenClasses
      Default:
      {}