p2 resolver hints - forcing wiring (OSGi) [message #996541] |
Wed, 02 January 2013 10:26 |
Peter Taylor Messages: 5 Registered: January 2013 |
Junior Member |
|
|
I have 3 plugins in my product (amongst others):
[1] com.ibm.dfdl.runtime (external)
-> exports package org.google.protobuf
[2] org.jboss.netty (external)
<- imports package org.google.protobuf
[3] com.greenhat.vie.comms (internal)
-> exports package org.google.protobuf
I need to work out how to FORCE [2] to wire org.google.protobuf to [3]... since it intermittently wires [2] to [1] which breaks the product due to a 'package use conflict'. Note: I can only change my bundle, [3] since the others are third party.
The OSGi Spec says:
OSGi.core-4.3.0.pdf
3.8 Resolving Process
The following list defines the preferences, if multiple choices are possible, in order of decreasing priority:
• A resolved exporter must be preferred over an unresolved exporter.
• An exporter with a higher version is preferred over an exporter with a lower version.
• An exporter with a lower bundle ID is preferred over a bundle with a higher ID.
So I guess I'm asking how can I force 'com.greenhat.vie.comms' to resolve BEFORE 'com.ibm.dfdl.runtime'
Suggestions?
Thanks,
Peter T
[Updated on: Wed, 02 January 2013 15:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04302 seconds