Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Running without the URL Handlers Service
Running without the URL Handlers Service [message #48030] Mon, 16 May 2005 04:33 Go to next message
Eclipse UserFriend
Originally posted by: weyford.sympatico.ca

In the org.eclipse.osgi.framework.internal.core.Framework
initialize(FrameworkAdaptor)
two singleton operations get called:
1) URL.setURLStreamHandlerFactory(...)
2) URLConnection.setContentHandlerFactory(...)

If a factory has been previously set for either the framework fails to
initialize.
I understand that these two calls both have to succeed in order to provide
an OSGi URL Handlers Service (at least in R3).

My question is can Eclipse be modified reasonably to run without these
calls?
In the environment in which I'm running these singleton operations may have
been called already.

I have a working prototype in which I've fixed up a few "reference:" URLs
that were being created from String but to be honest don't know all the
repercussions.

Is "bundleresource:" or "bundleentry:" used to create URLs by string
anywhere?
What is "platform:" used for -- I see it mentioned in the odd bug report --
are there plans for it?

Thanks.
-Simon
Re: Running without the URL Handlers Service [message #48062 is a reply to message #48030] Mon, 16 May 2005 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Correcting sender info.
-Simon

"Weyford" <weyford@sympatico.ca> wrote in message
news:d6989j$q3a$1@news.eclipse.org...
> In the org.eclipse.osgi.framework.internal.core.Framework
> initialize(FrameworkAdaptor)
> two singleton operations get called:
> 1) URL.setURLStreamHandlerFactory(...)
> 2) URLConnection.setContentHandlerFactory(...)
>
> If a factory has been previously set for either the framework fails to
> initialize.
> I understand that these two calls both have to succeed in order to provide
> an OSGi URL Handlers Service (at least in R3).
>
> My question is can Eclipse be modified reasonably to run without these
> calls?
> In the environment in which I'm running these singleton operations may
have
> been called already.
>
> I have a working prototype in which I've fixed up a few "reference:" URLs
> that were being created from String but to be honest don't know all the
> repercussions.
>
> Is "bundleresource:" or "bundleentry:" used to create URLs by string
> anywhere?
> What is "platform:" used for -- I see it mentioned in the odd bug
report --
> are there plans for it?
>
> Thanks.
> -Simon
>
>
Re: Running without the URL Handlers Service [message #48092 is a reply to message #48062] Tue, 17 May 2005 00:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

You could probably find a way around the bundle urls.
However the platform urls are APIs and some plugins might construct them
directly and use them to access data.
Therefore you might be able to run but it is unclear how far you could go.

HTH,

PaScaL

Simon Kaegi wrote:
> Correcting sender info.
> -Simon
>
> "Weyford" <weyford@sympatico.ca> wrote in message
> news:d6989j$q3a$1@news.eclipse.org...
>
>>In the org.eclipse.osgi.framework.internal.core.Framework
>>initialize(FrameworkAdaptor)
>>two singleton operations get called:
>>1) URL.setURLStreamHandlerFactory(...)
>>2) URLConnection.setContentHandlerFactory(...)
>>
>>If a factory has been previously set for either the framework fails to
>>initialize.
>>I understand that these two calls both have to succeed in order to provide
>>an OSGi URL Handlers Service (at least in R3).
>>
>>My question is can Eclipse be modified reasonably to run without these
>>calls?
>>In the environment in which I'm running these singleton operations may
>
> have
>
>>been called already.
>>
>>I have a working prototype in which I've fixed up a few "reference:" URLs
>>that were being created from String but to be honest don't know all the
>>repercussions.
>>
>>Is "bundleresource:" or "bundleentry:" used to create URLs by string
>>anywhere?
>>What is "platform:" used for -- I see it mentioned in the odd bug
>
> report --
>
>>are there plans for it?
>>
>>Thanks.
>>-Simon
>>
>>
>
>
>
Re: Running without the URL Handlers Service [message #48200 is a reply to message #48092] Tue, 17 May 2005 18:12 Go to previous message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Hi Pascal,

Thanks for your reply.
What if the URL creation changes were restricted to just org.eclipse.osgi
and org.eclipse.core.runtime -- I really just want the non-UI basics.

In this way the eclipse core could still initialize without necessarily
calling the singleton operations. I don't believe that externally the API
would be affected.

I'm not sure what might be the best way to control whether the ops get
called but certainly a flag/property would work or perhaps there is a
better way(?)

I'd be pleased to volunteer to do this work (even just for a prototype) if
you think it's feasable/reasonable.

--

You mentioned the platform URL as being API...
Is there a way to create a "platform" URL other than by spec (and the
default URLStreamHandlerFactory)?
Is "reference" also considered API?

-Simon
Previous Topic:Eclipse OSGi performance issue
Next Topic:fragment.xml or plugin.xml
Goto Forum:
  


Current Time: Thu Apr 25 02:20:22 GMT 2024

Powered by FUDForum. Page generated in 0.03098 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top