I am trying to create a logging OSGi
bundle, which would be able to log input, output, exception (if any) parameters of all the methods which are marked with specific annotation.
I have tried to set up the Spring
AOP
logging in OSGi
but I was unsuccessful.
All I need to know is how to determine when the method is being called? For example I have scanned all methods in a class which are annotated with my annotation and I have those methods in array or list.
For example there are three methods: getStatus
, getDetails
, getSomething
. And the user invokes getDetails
method, so how should I know when this method is invoked?