Richard Wallace wrote:

On Wed, 2003-01-29 at 11:03, Stephen McConnell wrote:

I've just updated the EngineClassLoader source in the Assembly package to take a URLStreamHandlerFactory as an argument. It would be a lot of help if you could play around with that to point of answering the question if this is a solution to the problem we are dealing with. I'm off and away for the next three or four hours.

Until later - Steve.

I just tried to figure out how to use this.  There is still problem in
creating a DefaultRegistry object.  It tries to use
URL.setURLStreamHandlerFactory and then form a URL object using the
"native" scheme.  So we have a chicken and egg problem because we can't
create a ServiceURLFactory until we create a Registry.  We can't create
a Registry because it will fail since setURLStreamHandlerFactory has
been called already.

I'm back!
:-)

Ok - I have not looked at the URLStreamHandlerFactory class but I'm asuming that could be a workaround such that we would nbot need to call the URL.setURLStreamHandlerFactory operation. Currently if the setURLStreamHandlerFactory throws an exception it is ignored - so an exection is being thrown when attempting to create the actual URL. So - in principal - of we associate a StreamHandlerFactory with the classloader set as the context classloader and the StreamHandlerFactory knows about our stuff - well - it should work. Keep in mind that it is 1:31 in the morning and I've just got back from a really great dinner - so I'm feeling cinfidend:-)

Cheers, Steve.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to