public class ProfilingInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
InvocationHandler.| Constructor and Description |
|---|
ProfilingInvocationHandler(ProfilerProvider profilerProvider,
java.lang.Object target)
Create a new handler with the given profiler provider and target object
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
createProxy(ProfilerProvider profilerProvider,
java.lang.Object target,
java.lang.Class<?>... interfaces)
Convenience method to create a profiling proxy for the given target object and interfaces.
|
static <T> T |
createProxy(ProfilerProvider profilerProvider,
java.lang.Object target,
java.lang.Class<T> interfaceClass)
Convenience method to create a profiling proxy for the given target object and interface.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
public ProfilingInvocationHandler(ProfilerProvider profilerProvider, java.lang.Object target)
profilerProvider - the profiler provider to usetarget - the target to invoke methods onpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic static <T> T createProxy(ProfilerProvider profilerProvider, java.lang.Object target, java.lang.Class<T> interfaceClass)
T - the interface that the returned proxy will implementprofilerProvider - the profiler provider to usetarget - the target object to invoke methods oninterfaceClass - the interface that the returned proxy will implementProxypublic static java.lang.Object createProxy(ProfilerProvider profilerProvider, java.lang.Object target, java.lang.Class<?>... interfaces)
profilerProvider - the profiler provider to usetarget - the target object to invoke methods oninterfaces - the interfaces that the returned proxy will implementProxy