[cdi-dev] On @RequestScoped hack
Jozef Hartinger
jharting at redhat.com
Wed Jun 24 10:22:11 EDT 2015
Depends on the spec mostly.
For @RequestScoped there is no natural notion of a request in plain Java
SE. It's the user that needs to set the boundaries of a task that the
@RequestScope is supposed to represent. This can be done using Weld API
and hopefully using ContextControl soon. In the meantime I see no point
in blurring this with magical contexts that try to guess what the use wants.
That means that the context is not active by default but can be
controlled using the API.
On 06/24/2015 03:56 PM, Antoine Sabot-Durand wrote:
> Jozef,
>
> Sorry my question wasn't precise enough. What will be the Request
> Context behavior in your implementation of EDR1 ?
More information about the cdi-dev
mailing list