org.codehaus.nanning
Interface MethodInterceptor

All Superinterfaces:
Interceptor

public interface MethodInterceptor
extends Interceptor

Intercepts calls on an interface on it's way to the target, these are nested "on top" of the target.

Version:
$Revision: 1.2 $
Author:
$Author: tirsen $

Method Summary
 java.lang.Object invoke(Invocation invocation)
          Do the stuff you want to do before and after the invocation.
 

Method Detail

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Throwable
Do the stuff you want to do before and after the invocation. Polite implementations would certainly like to implement Invocation.invokeNext().

Parameters:
invocation -
Returns:
the result of the call to Invocation.invokeNext(), might be intercepted by the interceptor.
Throws:
java.lang.Throwable - if the interceptors or the target-object throws an exception.


Copyright © Jon Tirsen. All Rights Reserved.