Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register protocol handlers in a lazy fashin #52

Closed
wants to merge 1 commit into from

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Jul 4, 2023

Currently the activator loads the extension class what might trigger activation of bundles immediatly.

This changes to a more lazy aproach where the extension class is only loaded at frist use of the protocol.

Currently the activator loads the extension class what might trigger
activation of bundles immediatly.

This changes to a more lazy aproach where the extension class is only
loaded at frist use of the protocol.
@scottslewis
Copy link
Contributor

scottslewis commented Jul 4, 2023

Hi Christoph.

To make certain: This change is only about doing things more lazily, right? There isn't some bug or semantic change that this is meant to address?

The reason I ask is that since this code used in Eclipse (p2) I recall something long ago about the p2 startup sequence (which I'm not completely familiar with) potentially requiring (at one point in the past if not now) a greedy startup/setting of the url stream handler service (maybe because equinox sets it as well?). At any rate I would ask that we do a little checking. I will help with this in the coming week.

@laeubi
Copy link
Member Author

laeubi commented Jul 5, 2023

To make certain: This change is only about doing things more lazily, right? There isn't some bug or semantic change that this is meant to address?

Correct, at least from my testing :-)

The reason I ask is that since this code used in Eclipse (p2) I recall something long ago about the p2 startup sequence (which I'm not completely familiar with) potentially requiring (at one point in the past if not now) a greedy startup/setting of the url stream handler service (maybe because equinox sets it as well?).

The handler is still eagerly registered, it is just delaying the loading of the implementation class until the first request is made to the handler, this is similar to changes in

At any rate I would ask that we do a little checking. I will help with this in the coming week.

Thanks!

@laeubi
Copy link
Member Author

laeubi commented Jul 5, 2023

@scottslewis any idea about the build? I can't really understand what is causing the failure or how to see the full buildlog...

@wimjongman
Copy link
Contributor

Christoph I have authorized you for this specific build. Let me know if this works for you:

image

@laeubi
Copy link
Member Author

laeubi commented Jul 5, 2023

It seems the PR just triggers another build so I just found the buildlog now, thanks!

@laeubi
Copy link
Member Author

laeubi commented Jul 5, 2023

But now Github seems playing tricks on me if I look here:

laeubi@96b178b

I see 4 changed files, but this PR only shows 3 changed files....

@laeubi laeubi closed this Jul 5, 2023
@laeubi
Copy link
Member Author

laeubi commented Jul 5, 2023

I have created a new PR now, sorry for confusion:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants