@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Inject
TargetClass
.
The field must not be declared static. If instances of the target class are in the image heap,
the field also needs to be annotated with RecomputeFieldValue
to provide a value for the
injected field.