Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Some Equinox Aspects questions
Some Equinox Aspects questions [message #661011] Tue, 22 March 2011 17:03 Go to next message
Robert Brown III is currently offline Robert Brown IIIFriend
Messages: 36
Registered: July 2009
Member
Greetings:

I have a few questions related to Equinox Aspects:

1. Suppose I have a bundle that depends on some JARs in its classpath, as listed in the bundle's manifest. I select that bundle for Load- time Weaving using Equinox Aspects. Does the load- time weaving include all the JARs defined in the manifest? In other words, would I be able to create an aspect that would effect classes in those JARs?

2. Is there, in general, a way to cause the load- time weaving to weave JARs that are in a Bundle's classpath? Or does the weaving only effect the code in bundles?

3. A more general question: is there any up- to- date documentation on how to use Equinox Aspects in Eclipse 3.6? I have gone to all the pages on Equinox Aspects I could find and the only instructions for using it and developing aspects for it are about 3 years old and describe doing everything in Eclipse 3.4. Since I am using Helios, and since it appears that Helios already has the dependent bundles already (making the installation instructions pretty much obsolete) -- and since I am seeing a number of bundles not mentioned in the 3.4 documentation, I have a feeling that I am going to need something that describes how to use this in Eclipse 3.6. Does this documentation exist and where is it if it does?
Re: Some Equinox Aspects questions [message #661445 is a reply to message #661011] Thu, 24 March 2011 17:10 Go to previous messageGo to next message
Martin Lippert is currently offline Martin LippertFriend
Messages: 124
Registered: July 2009
Senior Member
Hi!

> I have a few questions related to Equinox Aspects:
>
> 1. Suppose I have a bundle that depends on some JARs in its classpath,
> as listed in the bundle's manifest. I select that bundle for Load- time
> Weaving using Equinox Aspects. Does the load- time weaving include all
> the JARs defined in the manifest? In other words, would I be able to
> create an aspect that would effect classes in those JARs?

Yes, aspects that are woven using Equinox Aspects (or Equinox Weaving
now) are woven into all classes a bundle loads via its classloader. And
that is the case for JAR files that come as part of your bundle classpath.

> 2. Is there, in general, a way to cause the load- time weaving to weave
> JARs that are in a Bundle's classpath? Or does the weaving only effect
> the code in bundles?

Same answer... Aspects get woven into ALL classes that are loaded by the
bundle. If you have a JAR file on your classpath, those classes are
woven as well.

> 3. A more general question: is there any up- to- date documentation on
> how to use Equinox Aspects in Eclipse 3.6? I have gone to all the pages
> on Equinox Aspects I could find and the only instructions for using it
> and developing aspects for it are about 3 years old and describe doing
> everything in Eclipse 3.4. Since I am using Helios, and since it appears
> that Helios already has the dependent bundles already (making the
> installation instructions pretty much obsolete) -- and since I am seeing
> a number of bundles not mentioned in the 3.4 documentation, I have a
> feeling that I am going to need something that describes how to use this
> in Eclipse 3.6. Does this documentation exist and where is it if it does?

Unfortunately I still haven't found the time to update the
documentation. Its a shame and I am responsible for this shame... :-(

Nevertheless Equinox Weaving is now part of the general Equinox SDK
download for 3.6, so you can obviously use it with 3.6. The installation
is pretty straightforward and haven't changed much since that time. Just
take care to grab the bundles from the Equinox SDK (and not old ones
from somewhere else).

I definitely need to find the time to update the documentation... Sorry
again for that missing docs...

HTH,
Martin
Re: Some Equinox Aspects questions [message #661940 is a reply to message #661445] Mon, 28 March 2011 14:42 Go to previous message
Robert Brown III is currently offline Robert Brown IIIFriend
Messages: 36
Registered: July 2009
Member
No problem, Martin.

As long as there aren't any radical changes to the procedure for using the Aspects, I can follow the instructions available, compensating for the fact that the necessary bundles are already in Eclipse 3.6. Who knows: I might even be able to help update the doco...

I do have one small question: I notice that one of the bundles used is a framework extension (which makes sense, since the weaving process would best be initiated from an extension!). I am already using a framework extension for some other stuff, so I understand how to set it up in my environment. My only real question is how to include more than one framework extension in my runtime.

I think the way to do this is to comma- separate the framework extensions in the VM parameters, in a manner shown below:

-Dosgi.framework.extensions=<extension1>,<extension2>,..., <extensionN>

I am unsure though and just need conformation. Is that the correct way to include more than one framework extension? Or does the container only allow the use of one such extension?

Please advise.
Previous Topic:p2 replacement for InstallHandler
Next Topic:An Interesting Integration Problem
Goto Forum:
  


Current Time: Fri Apr 26 00:55:07 GMT 2024

Powered by FUDForum. Page generated in 0.02655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top