com.googlecode.catchexception.throwable.internal
Class DelegatingInterceptor

java.lang.Object
  extended by com.googlecode.catchexception.throwable.internal.DelegatingInterceptor
All Implemented Interfaces:
io.codearte.catchexception.shade.mockito.cglib.proxy.Callback, io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor

public class DelegatingInterceptor
extends Object
implements io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor

This interceptor delegates the method call to the target object.

Author:
rwoo

Field Summary
private  Object target
          See DelegatingInterceptor(Object).
 
Constructor Summary
DelegatingInterceptor(Object target)
           
 
Method Summary
 Object intercept(Object obj, Method method, Object[] args, io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private Object target
See DelegatingInterceptor(Object).

Constructor Detail

DelegatingInterceptor

public DelegatingInterceptor(Object target)
Parameters:
target - The object all method calls are delegated to. Must not be null.
Method Detail

intercept

public Object intercept(Object obj,
                        Method method,
                        Object[] args,
                        io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy proxy)
                 throws Throwable
Specified by:
intercept in interface io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor
Throws:
Throwable


Copyright © 2015. All rights reserved.