Perhaps I misunderstand, but what's wrong with
javax.imageio.spi.ServiceRegistry? It's been there since 1.4 and
although oddly packaged, always served my need prior to the slightly
nicer ServiceLoader encapsulation.

/Casper

On 10 Aug., 12:53, Reinier Zwitserloot <reini...@gmail.com> wrote:
> I'm referring to ServiceLoader, which is an abstraction layer so you
> don't have to hunt for META-INF/services files via the
> ClassLoader.getResources() mechanism. That bit is 1.6 only, but you
> can replicate it easily by using ClassLoader.getResources, or just
> ripping the code right out of openjdk6.
>
> On Aug 9, 5:38 pm, Jess Holle <je...@ptc.com> wrote:
>
> > Which mechanism is this exactly?
>
> > I'm used to using META-INF/services entries for my own SPIs as needed
> > irrespective of JDK level.  Are you referring to the locale, etc, SPI
> > lookup classes in 1.6?  Or something more general that I'm missing?
>
> > [I'm only using Java 6 these days apart from some old release support
> > work, so I want to know if I'm overlooking something I should be
> > leveraging.]
>
> > --
> > Jess Holle
>
> > Fabrizio Giudici wrote:
> > > Reinier Zwitserloot wrote:
>
> > >> Having said that, project lombok runs in 1.5 and 1.6, and I even
> > >> replicated the SPI service loader mechanism which is 1.6 only to avoid
> > >> a 1.6 dependency, because of that eclipse issue.
>
> > > Indeed that feature is the one that is most likely missed in Java 5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to