@Documented
@Target(value=TYPE)
public @interface ReactComponent
| Modifier and Type | Optional Element and Description |
|---|---|
ReactComponent.Feature |
dagger
Indicate whether a dagger sub-component and module is created for component.
|
ReactComponent.Feature |
inject
Indicate whether an @Inject annotation should be added to constructor of generated class.
|
java.lang.String |
name
Return the name of the component.
|
@Nonnull public abstract java.lang.String name
public abstract ReactComponent.Feature inject
ReactComponent.Feature.TRUE will force the addition of an @Inject annotation, ReactComponent.Feature.FALSE
will result in no @Inject annotation and ReactComponent.Feature.IF_DETECTED will add an @Inject
if any fields or methods in the react4j component or any parent type has an @Inject annotation.public abstract ReactComponent.Feature dagger