com.lonniepryor.blues.aop
Interface Around
- public interface Around
Interface that describes the behavour of advice that executes around the
invocation of a join point.
- Version:
- $Revision: 1.1 $
- Author:
- Lonnie Pryor
Nested Class Summary |
static interface |
Around.InvoctionChain
Passed to around() to represent the next element in the chain used to invoke a
join point. |
Method Summary |
java.lang.Object |
around(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] params,
Around.InvoctionChain chain)
Called before the invocation of a join point. |
around
public java.lang.Object around(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] params,
Around.InvoctionChain chain)
throws java.lang.Throwable
- Called before the invocation of a join point. Calling invokeNext() on the
supplied invocation chain will propagate the invocation to the target object
and return the result of the underlying method call.
- Parameters:
method
- The method that was invoked.target
- The object the invocation occurred on.params
- The parameters passed to the method.chain
- The chain of around advice to propagate invocations to.
- Returns:
- The value to be returned by the join point invocation.
- Throws:
java.lang.Throwable
- If an error occurrs.
Copyright © 2003 Blues Framework. All Rights Reserved.