I wrote a small CDI Extension which allows to add interceptors to classes via a simple property based configuration without having to touch your classes.
This is especially useful if you only like to add new aspects temporarily, like I did by writing a small invocation monitoring interceptor: InvoMon (part of the interdyn git repo). This works similar to JaMon and prints out statistics about class and method invocations to the intercepted classes at the end of each request.
https://github.com/struberg/InterDyn
This is especially useful if you only like to add new aspects temporarily, like I did by writing a small invocation monitoring interceptor: InvoMon (part of the interdyn git repo). This works similar to JaMon and prints out statistics about class and method invocations to the intercepted classes at the end of each request.