Annotation Interface View


@Documented @Target(TYPE) public @interface View
Annotation used to identify a React4j view.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enum indicating type of view.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Return the name of the view.
    Enum controlling whether Sting injection integration is generated for the view.
    Enum indicating the capabilities of the view.
  • Element Details

    • name

      @Nonnull String name
      Return the name of the view. The value defaults to the simple name of the class. If the value is specified, the value must conform to the requirements of a java identifier. It should also be unique across the suite of views used within an application but this is not strictly required as the name is only used for development purposes. (i.e. This is the name that is used within the React DevTools).
      Returns:
      the name of the view.
      Default:
      "<default>"
    • type

      @Nonnull View.Type type
      Enum indicating the capabilities of the view. See the View.Type enum for further details.
      Returns:
      an enum indicating the capabilities of the view.
      See Also:
      Default:
      STATEFUL
    • sting

      Enum controlling whether Sting injection integration is generated for the view. The generated class is the same name as the view with the "Factory" suffix. React4j only supports constructor injection and thus this MUST NOT be set to Feature.ENABLE unless there are constructor parameters on the view. If the value is set to Feature.AUTODETECT then the feature will be enabled if the view has constructor parameters and the sting.Injectable class is present when compiling the view.
      Returns:
      an enum controlling whether sting integration is generated for the view.
      Default:
      AUTODETECT