-
Notifications
You must be signed in to change notification settings - Fork 194
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
Adjust and clean-up/simplify sisu-OSGi-connect #1361
Conversation
...onnect/src/main/java/org/eclipse/sisu/osgi/connect/PlexusFrameworkConnectServiceFactory.java
Outdated
Show resolved
Hide resolved
...onnect/src/main/java/org/eclipse/sisu/osgi/connect/PlexusFrameworkConnectServiceFactory.java
Outdated
Show resolved
Hide resolved
...onnect/src/main/java/org/eclipse/sisu/osgi/connect/PlexusFrameworkConnectServiceFactory.java
Outdated
Show resolved
Hide resolved
...sgi/sisu-osgi-connect/src/main/java/org/eclipse/sisu/osgi/connect/PlexusModuleConnector.java
Show resolved
Hide resolved
Yeah the path part was changed at the development phase a bit, an I'm not completely happy with the way to configure this but I think we need to get some experience with that :-) |
fbac8e5
to
27844e3
Compare
No problem, its a new thing and it is really hard to know from the beginning how to use it/configure it in all cases. :) Two other things I noticed (that maybe should be addressed separately if we know we need it):
|
Please be carefull that Mojo + Plexus Component use different annotations (
Yes, OSGi is all about services, so you should use them. Anyways you can query any service if you think you can do better without it even |
🤦🏽♂️ looks like I indeed blindly copied it and didn't notice
In the mentioned case there was simply no useful service that I could query, but yes I just queried some unused service to launch the osgi-instance. But using Object probably indicates the intend of not using it better. |
Then probably there should be one! Just keep in mind that the whole purpose of connect is to interact with the OSGi framework (otherwise you might better instantiate the classes directly without any OSGi), so you can ave you a lot of trouble if there is a service you can call and that do the dirty bits without you knowing. I also used something similar anyways but more as a legacy way, so you should be able to directly use any class up to a point where one service will be required. And yes Eclipse is nasty in its usage of static activator access... a good opportunity to fix that and using real service/ds instead :-) |
27844e3
to
1a698fd
Compare
1a698fd
to
34712da
Compare
Fully agree, but that is a huge task since that pattern is used very often in the Eclipse eco-system. |
Every little piece counts :-) As DS now days even require less setup I don't see a reason to not use it ... |
That's right. I just meant it is too much to wait for it now. :) Besides that, do you have any more remarks? If not I think this is ready. |
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.
Sounds reasonable!
This PR is split in two commits.
A few minor clean-ups/simplifications for the code of
sisu-osgi-connect
that I noticed while working on Add PDE API Tools Mojo for Tycho #1328.The path for the
connect.bundles
file is fixed in the release-notes and the path of theconnect.properties
is changed fromMETA-INF/sisu-connect.properties
toMETA-INF/sisu/connect.properties
, to correspond toMETA-INF/sisu/connect.bundles
.@laeubi I assume that was the actual intention, wasn't it?