I have a pretty big enterprise application, and I'm planning to write a method interceptor that works across all classes in the app. I know I can use Guice for writing such interceptors, however, this approach only works if the target object that contains the method to be intercepted is created by Guice (reference).
Is there a way in which I can create such an interceptor? I do not want to inject the interceptor module since I cannot control object creation through injector.getInstance()
site-wide.
Btw, the app is built on Play! Framework.