Annotation Interface Inject


Requests J7M-native dependency injection.

When placed on a constructor, the application platform resolves all parameters from the application-scoped capability registry. When placed on a field, the field is injected only if JPMS access permits reflective write access. Missing or ambiguous dependencies fail activation with a stable middleware error code and safe diagnostics.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the host-owned named binding policy.
    Returns the explicit binding refresh mode; legacy injectors retain their existing behavior.
  • Element Details

    • refresh

      Returns the explicit binding refresh mode; legacy injectors retain their existing behavior.
      Returns:
      NEVER unless a managed host supplies a dynamic binding adapter
      Default:
      NEVER
    • policy

      String policy
      Returns the host-owned named binding policy.
      Returns:
      default policy identifier
      Default:
      "default"