views:

50

answers:

2

I am using Equinox, so the Equinox Aspect project seems like a no-brainer, but that project appears to be inactive and has only one page of documentation that leaves me hanging at the end.

Other than that project, I do not see many options for using AOP in OSGI. Let me know what you all think and what the possibilities are, thanks :)

A: 

I don't know of any alternative, but I didn't think Equinox Aspects was inactive. It's even receiving new features in the upcoming Helios release.

omerkudat
I Emailed Martin Lippert and Equinox Aspects appears to be alive and well, but also under-documented. I will hopefully get some good help from the mailing list.Is anyone out there using Equinox Aspects?
Equinox Aspects is most definitely not dead. It has reached a stage where not many new features are have been requested recently. So, there is not much activity.Equinox Aspects is used for AJDT and for Scala Tooling. Neither of these projects would be very useful without it.
Andrew Eisenberg
A: 

The big issue is obviously with the lack of standardized loadtime weaving; Equinox Aspects and the weaver (used by AJDT) has been the only option for now. The good news is that bytecode weaving in all its glory is actively in progress in the OSGi working group and will "soon" be standardized. If you really need something that works reliably right now, your best bet is still compile-time weaving. IMHO that is a much better approach anyway, at least for AOP as design-time activity as it was originally envisioned..

Holger Hoffstätte
Unfortunately compile time weaving does not work in all situations, especially in OSGi. You may want third party users to install your aspects bundle in an existing OSGi application. In this case, you would need LTW to get things done.I am interested in this OSGi option for LTW, any links?
Andrew Eisenberg
Andrew, no links but this is ongoing work in the CPEG and my understanding is that AJDT/Equinox weaving is used as starting point (which makes sense). Glyn should know more. ;)
Holger Hoffstätte