Annotation Type Component.Import
- Enclosing class:
Component
@Retention(SOURCE)
@Target({TYPE,PACKAGE,MODULE})
@Repeatable(Component.Imports.class)
public static @interface Component.Import
Specify types to generate DI classes for.
These types are typically in an external project / dependency or otherwise types that we
can't or don't want to explicitly annotate with @Singleton/@Component.
Typically, we put this annotation on a package/module-info.
Component.Import({CustomerService.class, ProductService.class, ...})
package org.example.processor;
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
kind
-