@Documented
@Target(value=TYPE)
public @interface ReactComponent
Modifier and Type | Optional Element and Description |
---|---|
Feature |
inject
Indicate whether the generated component class is expected to be created and injected by the injection framework.
|
java.lang.String |
name
Return the name of the component.
|
ReactComponent.Type |
type
Enum indicating the capabilities of the component.
|
@Nonnull public abstract java.lang.String name
public abstract Feature inject
Feature.ENABLE
will force injection framework integration, Feature.DISABLE
will force no injection framework integration and Feature.AUTODETECT
will enable injection framework
integration if any fields or methods in the component or any parent type has an javax.inject.Inject
annotation.@Nonnull public abstract ReactComponent.Type type
ReactComponent.Type
enum for further details.ReactComponent.Type