dev@jsr311.java.net

Re: JSR311: Injection into Application class?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 22 May 2009 08:20:29 -0400

On May 22, 2009, at 4:03 AM, Paul Sandoz wrote:

> On May 22, 2009, at 3:36 AM, Bill Burke wrote:
>
>> I don't see anywhere in the spec that allows injection into the
>> Application class.
>
> Right,
>
>
>> The Application Class may need to get environment information in
>> order to initialize its JAX-RS singletons.
>
> I agree this is a good idea. Can you log an issue?
>
+1, good idea. We also have a request to allow injection of the
Application subclass into resources and providers so this would be
nicely symmetric.

>
>> One user also inquired about getting access to ServletConfig.
>>
>
> Injection of ServletConfig is specified:
>
> https://jsr311.dev.java.net/nonav/releases/1.0/spec/
> spec3.html#x3-610006.1
>
>
>> Maybe this should be added to 1.1?
>
> The MR review process finished on the 3rd March, so strictly
> speaking it is too late for 1.1. We are gonna have to punt it to 2.0.
>
Right.

Marc.