@Retention(value=CLASS)
@Target(value=TYPE)
public @interface InstallIn
Module or @EntryPoint.
Example usage for installing a module in the generated ApplicationComponent:
@Module
@InstallIn(ApplicationComponent.class)
public final class FooModule {
@Provides
static Foo provideFoo() {
return new Foo();
}
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<?>[] |
value |