You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might just be my ignorance, but we seem to have inconsistencies as to when to use @Inject and when to use @Context. If I am in the weeds here it would be good if somebody could articulate the simple rule our customers should follow to know when to use what.
An example of the problem using Helidon 3.2.0 and the MicroProfile quickstart. In SimpleGreetResource
#6784)
* Support for injection of ServerRequest and ServerResponse also via CDI. New functional test to verify both types of injection. See issue #6698.
* Return immutable sets and use existing annotation class.
* Fixed checkstyle.
Signed-off-by: Santiago Pericasgeertsen <[email protected]>
* Simplified registration of beans using fluent API provided by event.
* Use flatMap and throw a CreationException if unable to find instances in context.
* Fixed typo.
Signed-off-by: Santiago Pericasgeertsen <[email protected]>
---------
Signed-off-by: Santiago Pericasgeertsen <[email protected]>
This might just be my ignorance, but we seem to have inconsistencies as to when to use
@Inject
and when to use@Context
. If I am in the weeds here it would be good if somebody could articulate the simple rule our customers should follow to know when to use what.An example of the problem using Helidon 3.2.0 and the MicroProfile quickstart. In
SimpleGreetResource
To inject
io.opentracing.Tracer
I had to use@Inject
(could not use@Context
).To inject
io.helidon.webserver.ServerRequest
I had to use@Context
(could not use@Inject
).Is this intentional? Or just what ended up being implemented.
The text was updated successfully, but these errors were encountered: