Annotation Interface J7mComponent
Marks an application-owned class as eligible for J7M-native injection.
Components are created inside the owning application activation scope. Constructor injection is preferred because it works with immutable fields and gives JPMS access failures a clear activation-time failure point. Field injection is allowed only when the declaring package is open to the application platform and should be used for compatibility code rather than new application code.
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameReturns an optional component name.- Returns:
- qualifier name, or the empty string for the default component
- Default:
""
-