public abstract class GenericSideEffect extends SideEffectOf<InvocationHandler> implements InvocationHandler
result| Constructor and Description | 
|---|
GenericSideEffect()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
invoke(Method method,
      Object[] args)
Convenience method to be overridden by subclasses in order to avoid returning null, as returned value from side
 effects is not taken in consideration. 
 | 
Object | 
invoke(Object proxy,
      Method method,
      Object[] args) | 
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected void invoke(Method method, Object[] args) throws Throwable
method - the method that was invokedargs - the arguments of the method invocationThrowable - - the exception to throw from the method invocation on the proxy instance. The exception's type
                   must be assignable either to any of the exception types declared in the throws clause of the
                   interface method or to the unchecked exception types {code}java.lang.RuntimeException{code}
                   or {code}java.lang.Error{code}. If a checked exception is thrown by this method that is not
                   assignable to any of the exception types declared in the throws clause of the interface method,
                   then an UndeclaredThrowableException containing the exception that was thrown by this method
                   will be thrown by the method invocation on the proxy instance.