Package react4j.annotations
Annotation Interface View
Annotation used to identify a React4j view.
-
Nested Class Summary
-
Optional Element Summary
-
Element Details
-
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
Enum indicating the capabilities of the view. See theView.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 toFeature.ENABLE
unless there are constructor parameters on the view. If the value is set toFeature.AUTODETECT
then the feature will be enabled if the view has constructor parameters and thesting.Injectable
class is present when compiling the view.- Returns:
- an enum controlling whether sting integration is generated for the view.
- Default:
- AUTODETECT
-