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 ElementsModifier and TypeOptional ElementDescriptionReturns the host-owned named binding policy.Returns the explicit binding refresh mode; legacy injectors retain their existing behavior.
-
Element Details
-
refresh
BindingRefresh refreshReturns 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 policyReturns the host-owned named binding policy.- Returns:
- default policy identifier
- Default:
"default"
-