You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to instrument my ServiceImplementation class, I need to create an actual instance and wrap it into the Tritium proxy. Instead, I want HK2 (or Guice, or whatever) to do all instantiation for me, so that I can take advantage of automatic DI.
Can Tritium support a mode where I simply annotate either my entire class or a specific method as @Tritium or @Instrumented or something, and Tritium provides a MethodInterceptor that does metrics + invocation logging? (This has a decent example of what this could look like: https://hk2.java.net/2.3.0/aop-example.html)
The text was updated successfully, but these errors were encountered:
Suppose I'm setting up my services to be automatically injected with dependencies by doing something like this:
If I want to instrument my
ServiceImplementation
class, I need to create an actual instance and wrap it into the Tritium proxy. Instead, I want HK2 (or Guice, or whatever) to do all instantiation for me, so that I can take advantage of automatic DI.Can Tritium support a mode where I simply annotate either my entire class or a specific method as
@Tritium
or@Instrumented
or something, and Tritium provides aMethodInterceptor
that does metrics + invocation logging? (This has a decent example of what this could look like: https://hk2.java.net/2.3.0/aop-example.html)The text was updated successfully, but these errors were encountered: