The standard OSGi way I suppose would be to use service hooks to intercept service registrations, and re-register proxied versions. Would be simple enough to intercept invocation parameters and results in this way.
Cheers, Eli On Thu, 18 Feb 2016 at 16:10 Steve Marotta <smaro...@cra.com> wrote: > Hello, > > > > I was wondering if there was a way, built into OSGi, to automatically > listen for any time that code in one bundle invokes a method on a service > in another bundle. For example, if I have a service defined with a method > that takes a “name” string and queries a database to return an “address” > string, I want to be able to build a separate component that will listen > for these method calls and invoke a callback both when the method is > called, where I can see the name string that was passed, and a callback > when the method returns, where I can see the address string that comes > back. I could do this manually using something like aspect-oriented > programming, but if there is a way to do this that is built into OSGi, then > it will save me the trouble. > > > > Thanks, > > Steve > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev