@Documented
@Target(value=TYPE)
public @interface ReactComponent
Modifier and Type | Optional Element and Description |
---|---|
Feature |
dagger
Indicate whether a dagger sub-component and module is created for component.
|
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 Feature inject
Feature.ENABLE
will force the addition of an @Inject annotation, Feature.DISABLE
will result in no @Inject annotation and Feature.AUTODETECT
will add an @Inject
if any fields or methods in the react4j component or any parent type has an @Inject annotation.public abstract Feature dagger