dev@jsr311.java.net

Re: obtaining objects from 3rd party containers

From: Dhanji R. Prasanna <dhanji_at_gmail.com>
Date: Tue, 17 Jul 2007 07:59:58 +1000

On 7/16/07, Heiko Braun <hbraun_at_redhat.com> wrote:

> public <T> T getSPI(java.lang.Class<T> spiType)
>
> i.e. Container.getSPI(ResourceDispatcher.class)
>
> Is it similar to what you envision, Dhanji?


Something like that sounds reasonable. Or perhaps via a system property a la
Hibernate (and many others =)

On Mon, 2007-07-16 at 13:27 +0200, Heiko Braun wrote:
> > I see. I got you wrong.
> > You do only suggest a clear integration point for container providers,
> > right? I.e. through some callback API.


Yes exactly. With a lightweight/barebones "default" impl for running with
jaxrs alone.

Dhanji.