Leveraging OSGi and dynamic bundle loading [message #50229] |
Thu, 12 March 2009 05:52  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030503000803050600040301
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi all,
I am searching for a way to dynamically load the bundles defined in my
Eclipse workspace in the currently running Eclipse instance so as to
have their extension points and exported packages registered. I have had
some success with code inspired from the org.eclipse.ui.tools project in
platform-incubator/ui . The problem I face now is ... The projects
loaded dynamically need to have the "Bundle-Classpath" header
positionned in their MANIFEST.MF so as to avoid classloading issues.
Whar I am looking for would be a way to dynamically position this value
or tell the loaded bundle (or the PackageAdmin? don't really know where
I should enter the API here) without forcing my users to set their
Bundle-Classpath.
org.eclipse.pde.internal.core.ibundle.IManifestHeader and other
interfaces/classes I could find when trying to do this are all internal
so ... is there a way to do this through public API?
Thanks,
Laurent Goubet
Obeo
--------------030503000803050600040301
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard
--------------030503000803050600040301--
|
|
|
|
|
|
Re: Leveraging OSGi and dynamic bundle loading [message #53555 is a reply to message #53528] |
Mon, 06 April 2009 03:55  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------000408070308000805010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi Chris,
Unfortunately I cannot make use of this action as I need to do this
through code and it isn't opened enough for clients to leverage it. I
did look at it in order to write the code I use to dynamically load
plugins, the only remaining problem being this Bundle-Classpath entry
that is necessary for clients to manually add to their MANIFEST.MF for now.
I'd like to have a way to alter the bundleModel to add this entry when
installing from the workspace, but as far as I went in the API, I
couldn't find any way of doing this without using internal classes. If
not through pde code, I'd have at least expected equinox to offer such APIs.
Laurent Goubet
Obeo
Chris Aniszczyk a
|
|
|
Re: Leveraging OSGi and dynamic bundle loading [message #593155 is a reply to message #50229] |
Thu, 12 March 2009 09:42  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030802060301040402070104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Sorry for cross-posting this, I just thought this might be more of an
equinox question than PDE.
laurent Goubet a
|
|
|
Re: Leveraging OSGi and dynamic bundle loading [message #594596 is a reply to message #50259] |
Fri, 03 April 2009 05:21  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030001010308070309050607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi all,
Shamelessly bumping this question up in case someone who'd know how to
use Manifest-related API hadn't seen it.
Laurent Goubet
Obeo
laurent Goubet a
|
|
|
|
Re: Leveraging OSGi and dynamic bundle loading [message #594607 is a reply to message #53528] |
Mon, 06 April 2009 03:55  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------000408070308000805010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi Chris,
Unfortunately I cannot make use of this action as I need to do this
through code and it isn't opened enough for clients to leverage it. I
did look at it in order to write the code I use to dynamically load
plugins, the only remaining problem being this Bundle-Classpath entry
that is necessary for clients to manually add to their MANIFEST.MF for now.
I'd like to have a way to alter the bundleModel to add this entry when
installing from the workspace, but as far as I went in the API, I
couldn't find any way of doing this without using internal classes. If
not through pde code, I'd have at least expected equinox to offer such APIs.
Laurent Goubet
Obeo
Chris Aniszczyk a
|
|
|
Powered by
FUDForum. Page generated in 0.09034 seconds