users@jersey.java.net

Re: [Jersey] LW HTTP Server and injectable providers

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 10 Jun 2008 09:09:22 +0200

On Jun 10, 2008, at 1:07 AM, Bertold Kolics wrote:

> Hi,
>
> Is it possible to use injectable providers with the lightweight
> HTTP Server? I don't see how one can invoke the addInjectable
> method on WebApplication when running outside a container.
>

In the latest build you can use @Provider, for example:

   @Provider
   public class MyInjectable implements
InjectableProvider<MyAnnotation, Type> {
     ...
   }

Paul.