[EMAIL PROTECTED] wrote on 2007-04-13 12:54:01:

> ,----[ Section 11.3.2 -- Built-in Handlers ]
> | It is thus not guaranteed that a registered URLStreamHandlerService
> | object is used. Therefore, built-in handlers should take priority over
> | handlers from the service registry to guarantee consistency. The
> | built-in handlers, as defined in the OSGi execution environments must
> | never be overridden.
> `----
> 

A very late reply to this topic, but OSGi recently agreed to soften the 
spec text to change "must" in the second sentence to "should". This is to 
reflect reality. I am quite sure that Equinox allows you to replace the 
built-in handlers. 

The real issue is that the implementation of the URL class contains a map 
of handler names to implementation classes. Once a handler is selected, it 
cannot be replaced. However, some reflection magic can solve this :-)

-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]

office: +1 386 848 1781
mobile: +1 386 848 3788

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to