dev@jsr311.java.net

Re: JSR311: _at_Singleton

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 11 Jun 2008 10:17:06 -0400

On Jun 11, 2008, at 9:51 AM, Marc Hadley wrote:
> I can see how this would be useful as a lightweight alternative to
> an IoC framework. I propose that we add a single method:
>
> Set<Object> getSingletons();
>
> that returns a set of singleton resources and providers.

Forgot to mention, the JAX-RS runtime would perform field and property
injection on the returned instances.

> These would take priority over any classes supplied from
>
> Set<Class<?>> getClasses();
>
> that is a merge of the existing getProviderClasses and
> getResourceClasses methods. In both cases the implementation can
> work out what instance or class does what so there's no real need to
> have two methods.
>
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.