net.sf.cglib
Class BeforeAfterAdapter
java.lang.Object
|
+--net.sf.cglib.BeforeAfterInterceptor
|
+--net.sf.cglib.BeforeAfterAdapter
- All Implemented Interfaces:
- MethodInterceptor
- public class BeforeAfterAdapter
- extends BeforeAfterInterceptor
A concrete implementation of BeforeAfterInterceptor that does nothing except
call the original method. For extension by implementors who want to only
override either invokeSuper or afterReturn.
- Version:
- $Id: BeforeAfterAdapter.java,v 1.4 2003/05/13 06:17:09 herbyderby Exp $
Method Summary |
java.lang.Object |
afterReturn(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean invokedSuper,
java.lang.Object retValFromSuper,
java.lang.Throwable e)
This method is called after invoking the super (non-intercepted) method, or
directly after the invokeSuper interceptor method, if it returned false. |
boolean |
invokeSuper(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args)
This method is called before invoking the super (non-intercepted) method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeforeAfterAdapter
public BeforeAfterAdapter()
invokeSuper
public boolean invokeSuper(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Description copied from class:
BeforeAfterInterceptor
- This method is called before invoking the super (non-intercepted) method.
- Overrides:
invokeSuper
in class BeforeAfterInterceptor
- Returns:
- true
afterReturn
public java.lang.Object afterReturn(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean invokedSuper,
java.lang.Object retValFromSuper,
java.lang.Throwable e)
throws java.lang.Throwable
- Description copied from class:
BeforeAfterInterceptor
- This method is called after invoking the super (non-intercepted) method, or
directly after the invokeSuper interceptor method, if it returned false.
- Overrides:
afterReturn
in class BeforeAfterInterceptor
- Returns:
- the supplied retValFromSuper (original method return value)
Copyright © 2002-2003 cglib. All Rights Reserved.