Search code examples
springreferenceosgiaopaspect

Apply AOP aspect in OSGI reference


Is it possible to apply an AOP aspect in an OSGI reference?

I have two bundles, bundle A expose a service that bundle B is able to consume it. Bundle B has a bean reference, and I want to apply AOP aspect to this reference. I want to use monitoring using JMX.

How can I implement this?


Solution

  • With Equinox OSGi container you can use Equinox Weaving feature to apply AspectJ AOP on various bundles.