Annotation Interface Install


@Retention(RUNTIME) @Documented @Target(METHOD) public @interface Install
Annotation for declarative handler methods in UI controllers.
Example:
    @Install(to = "label", subject = "formatter")
    protected String formatValue(Integer value) {
        // the method used as Label formatter
        return "1.0";
    }
 
See Also:
  • Element Details

    • target

      Target target
      Returns:
      type of target
      Default:
      COMPONENT
    • type

      Class<?> type
      Returns:
      type of functional interface, can be used instead of subject()
      Default:
      java.lang.Object.class
    • subject

      String subject
      Returns:
      property name that will be set using annotated method
      Default:
      ""
    • to

      String to
      Returns:
      id or path to target object
      Default:
      ""
    • required

      boolean required
      Declares whether the annotated dependency is required.

      Defaults to true.

      Default:
      true