-
Notifications
You must be signed in to change notification settings - Fork 58
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
Conversation
|
||
public void earlyStartup() { | ||
JBossServerCorePlugin.getDefault(); | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
b53a44f
to
f45a9a7
Compare
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. |
f45a9a7
to
6e138f6
Compare
Damn laziness :) updated PR. |
Fix extracts ISturtup implementation into separate class and set its name as startup@class attribute value in extensin point
6e138f6
to
812eb49
Compare
Rob, I tested it again and it works as expected now. server.core gets activated. could you release it into master? |
Rebased and pushed to master. Thanks for the patch, Denis! |
Fix extracts ISturtup implementation into separate
class and set its name as startup@class attribute
value in extensin point