|
1 |
| package com.agical.rmock.extension.cglib; |
|
2 |
| |
|
3 |
| import java.lang.reflect.Method; |
|
4 |
| |
|
5 |
| import net.sf.cglib.proxy.MethodInterceptor; |
|
6 |
| import net.sf.cglib.proxy.MethodProxy; |
|
7 |
| |
|
8 |
| import com.agical.rmock.core.ProxyFactory; |
|
9 |
| import com.agical.rmock.core.expectation.ExpectationsState; |
|
10 |
| import com.agical.rmock.core.expectation.InvocationListener; |
|
11 |
| |
|
12 |
| public class InterfaceInterceptionInvocationHandler extends ObjectInterceptionInvocationHandler implements MethodInterceptor { |
|
13 |
| |
|
14 |
17
| public InterfaceInterceptionInvocationHandler( com.agical.rmock.core.InvocationHandler invocationHandler,
|
|
15 |
| String id, |
|
16 |
| Class clazz, |
|
17 |
| ProxyFactory proxyFactory, |
|
18 |
| ExpectationsState expectationsState, |
|
19 |
| InvocationListener invocationListener, |
|
20 |
| ObjectReferenceRetriever objectReferenceFromStacktrace) { |
|
21 |
| |
|
22 |
17
| super(invocationHandler, id, clazz, proxyFactory, expectationsState, invocationListener, objectReferenceFromStacktrace);
|
|
23 |
| } |
|
24 |
| |
|
25 |
22
| public Object intercept(Object self, Method invokedMethod, Object[] arguments, MethodProxy baseClassMethod) throws Throwable {
|
|
26 |
| |
|
27 |
22
| return super.intercept(self, invokedMethod, arguments, null);
|
|
28 |
| |
|
29 |
| } |
|
30 |
| } |