classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ServiceFactory


From: Sascha Brawer
Subject: Re: ServiceFactory
Date: Wed, 24 Mar 2004 09:27:56 +0100

Hi all,

FYI, I've now checked gnu.classpath.ServiceFactory into cvs. Its purpose
is to load plug-in services that are specified via META-INF/services
resources (usually located in JAR files in the VM's extension directory).
By default, services will be loaded via the calling thread's context
class loader, but there's also a variant which takes an explicit
ClassLoader argument.

The following classes will need to be adjusted:

- java.nio.charset.Charset
- javax.print.PrintServiceLookup
- javax.print.StreamPrintServiceFactory
- javax.imageio.spi.ServiceRegistry (already done)
- (probably some more)

It would be good if the respective authors could do this...

Testing: The method javax.imageio.spi.ServiceRegistry.lookupProviders
exposes a public API for loading plug-in services. The Mauve testlets (in
the Mauve repository) run tests against this public API, not on the
Classpath-internal gnu.classpath.ServiceFactory.

Best regards,

-- Sascha

Sascha Brawer, address@hidden, http://www.dandelis.ch/people/brawer/ 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]