Hi Karl,

Felix already does provide something like that. Have a look at:

Yes, I know and this is great. But this (1) class is package private,
hence not available from outside, and (2) if the Felix is instance
sets the framework.service.urlhandlers property to false the URL
handler support is disabled for that instance and (3) if the property
is true, at least one URLHandlers instance is created which calls the
URL.setURLStreamHandlerFactory() and
URLConnection.setContentHandlerFactory() methods. This fails if either
method has already been called.

Consequently, I am back to the start: What if the factories have
already been registered by a non-Felix application ? What if two Felix
instances run in two separate class loader hierarchies, which means,
they don't have access to each other ?

Regards,
Felix

Reply via email to