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

[JBIDE-19218] Fix startup extension point error #327

Closed
wants to merge 1 commit into from

Conversation

dgolovin
Copy link
Member

Fix extracts ISturtup implementation into separate
class and set its name as startup@class attribute
value in extensin point


public void earlyStartup() {
JBossServerCorePlugin.getDefault();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Denis: Why are we removing this line here? Pretty sure we need as.core to start up when as.ui starts, since as.core adds listeners and various other things that need to be added.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am missing one file here, with empty IStartup implementation, I'll update PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is bad practice to have a plug-in activator and early workspace start up implemented in one class, so I split it and added class attribute which pointing to new ISturtup implementation.
earlyStartup method is empty, because it will trigger bundle activation on class load and everything else are going to work the same way as before, but no anti patterns and no error markers in manifest.

@robstryker
Copy link
Member

Denis: what you're missing here is that we need AS Core to start when AS UI starts. If AS UI starts without Core, then we have problems. Listeners don't get added and models don't get built. With your patch, as.ui will start up early, but will not start as.core.

@dgolovin
Copy link
Member Author

Damn laziness :) updated PR.

Fix extracts ISturtup implementation into separate
class and set its name as startup@class attribute
value in extensin point
@dgolovin
Copy link
Member Author

Rob, I tested it again and it works as expected now. server.core gets activated. could you release it into master?

@robstryker
Copy link
Member

Rebased and pushed to master. Thanks for the patch, Denis!

@robstryker robstryker closed this Feb 19, 2015
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

2 participants