users@jersey.java.net

[Jersey] Re: Servlet.Init() For Jersey REST Service

From: juminoz <juminoz_at_hotmail.com>
Date: Thu, 23 Jun 2011 10:20:31 -0700 (PDT)

Thanks Jakub and Martin.

One more question. Can I assume that whatever implements
SingletonTypeInjectableProvider is initialized automatically by the Jersey
framework? Since I need to invoke the super's constructor with a connection
object, I need to be able to pass it into the constructor.

@Provider
public class DSConnectionProvider extends
SingletonTypeInjectableProvider&lt;Context, Connection&gt; {
     public DSConnectionProvider(Connection connection) {
         super(Connection.class, connection);
     }
}

Basically, I'm trying to figure out how this connection provider is
initialized and also how to pass in a connection object in this case.

Thanks,
Jack

--
View this message in context: http://jersey.576304.n2.nabble.com/Servlet-Init-For-Jersey-REST-Service-tp6507144p6509196.html
Sent from the Jersey mailing list archive at Nabble.com.