Question regarding extensibility

Alan Bateman Alan.Bateman at Sun.COM
Sat Feb 6 03:16:26 PST 2010


Paulo Levi wrote:
> I have something similar for rar and zip files, (to filter them) and i 
> use ServiceLoader for the registry. In fact i'm surprised you don't 
> already do that. Whats the problem ? The constructor problem ? (That 
> annoys me in serviceloader too, and distorts some of my apis)
>
Sorry, I don't think I understand your mail. FileSystems does specify 
that it uses the service-provider loading facility to locate and load 
installed providers. The discussion here is a request to have a way to 
register providers that aren't on the class path. With the current API 
you need to invoke newFileSystem and specify the class loader to create 
file systems when provider is loaded by a custom loader. This isn't a 
limitation or issue with ServiceLoader.

-Alan.


More information about the nio-discuss mailing list