According to the JAX-RS specification, register(Object) is meant to inject tt>@Context</tt (and I guess tt>@Inject</tt?) into the object.
Currently, it does so if the object implements Feature but it should at least do so also for DynamicFeature, and maybe other classes (I'm not sure how to interpret "JAX-RS component" in the citation below).
Here is two relevant documentation of javax.ws.rs.core.Configurable.register(Object):
The registered JAX-RS component is registered as a contract provider of all the recognized JAX-RS or implementation-specific extension contracts including meta-provider contracts, such as {@code Feature} or {@link javax.ws.rs.container.DynamicFeature}.
Fields and properties of all registered JAX-RS component instances are injected with their declared dependencies (see {@link Context}) by the JAX-RS runtime prior to use.
Hi,
According to the JAX-RS specification, register(Object) is meant to inject tt>@Context</tt (and I guess tt>@Inject</tt?) into the object.
Currently, it does so if the object implements Feature but it should at least do so also for DynamicFeature, and maybe other classes (I'm not sure how to interpret "JAX-RS component" in the citation below).
Here is two relevant documentation of javax.ws.rs.core.Configurable.register(Object):