Annotation Interface J7mComponent


@Documented @Retention(RUNTIME) @Target(TYPE) public @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
    Modifier and Type
    Optional Element
    Description
    Returns an optional component name.
  • Element Details

    • name

      String name
      Returns an optional component name.
      Returns:
      qualifier name, or the empty string for the default component
      Default:
      ""