public class InternalInvocationhandler extends CommonProxyInterceptor implements InvocationHandler
InvocationHandler interface for internal usage.
This is used when the user has Provided annotation on a field whose type is an Interface.
EasyTest uses JDK dynamic proxies to intercept calls to the method on Interface type fields.
For Concrete classes, EasyTest uses CGLIB.LOG| Constructor and Description |
|---|
InternalInvocationhandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke the method on the provided
CommonProxyInterceptor.getTargetInstance(). |
compareTime, getExpectedRunTime, getExpectedTimeInNano, getTargetInstance, getUserIntercepter, intercept, setExpectedRunTime, setTargetInstance, setUserIntercepteraddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
CommonProxyInterceptor.getTargetInstance().
CommonProxyInterceptor.getUserIntercepter()'s intercept method is invoked with the right arguments.
Note that this implementation does not use the proxy instance passed to this method.invoke in interface InvocationHandlerproxy - NOT USEDmethod - the method to invokeargs - the arguments to the methodThrowable - if any exception occursCopyright © 2014. All rights reserved.