users@jersey.java.net

Does jersey provide a startup hook?

From: Aditya Gore <aditya.gore_at_gmail.com>
Date: Fri, 10 Aug 2007 16:22:02 +0530

Hi,

I am trying to write a simple AddressBook app that is modeled on the
SimpleStorageService example. While browsing through the
SimpleStorageService I noticed that the MemoryStore used for holding
the created containers and objects holds a static reference to itself.
I am wondering if there's a better way to do this in my AddressBook
app. To be specific, I want a place where I can create an
AddressBookStore object once during startup and inject it into my
resource classes. Is there some kind of startup hook that jersey
provides for doing this?

regards,
:aditya