com.xenonsoft.bridgetown.aop.helper
Class AfterAdviceAdaptor

java.lang.Object
  extended bycom.xenonsoft.bridgetown.aop.helper.AfterAdviceAdaptor
All Implemented Interfaces:
IMethodInterceptor, java.io.Serializable

public abstract class AfterAdviceAdaptor
extends java.lang.Object
implements IMethodInterceptor, java.io.Serializable

An adaptor class that makes it easier to write a convenient "After" advice on the method interceptor.

Version:
$Id: AfterAdviceAdaptor.java,v 1.4 2005/03/17 02:24:50 peter_pilgrim Exp $
Author:
peterp, 02-Oct-2004
See Also:
Serialized Form

Constructor Summary
AfterAdviceAdaptor()
          Default constructor
 
Method Summary
abstract  java.lang.Object after(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
          The after advice that the subclasser must implement.
 java.lang.Object invocation(IInterceptionContext context)
          The method interceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterAdviceAdaptor

public AfterAdviceAdaptor()
Default constructor

Method Detail

invocation

public final java.lang.Object invocation(IInterceptionContext context)
                                  throws java.lang.Throwable
The method interceptor

Specified by:
invocation in interface IMethodInterceptor
Parameters:
context - the interception context
Returns:
the return value from the method join point that has been invoked
Throws:
java.lang.Throwable
See Also:
IMethodInterceptor.invocation(com.xenonsoft.bridgetown.aop.IInterceptionContext)

after

public abstract java.lang.Object after(java.lang.Object returnValue,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args,
                                       java.lang.Object target)
                                throws java.lang.Throwable
The after advice that the subclasser must implement. This is method is called after invocation of the joinpoint.

Parameters:
returnValue - the return value after the joinpoint has been invoked
method - the method join point
args - the arguments that where were supplied
target - the target object
Returns:
the return value
Throws:
java.lang.Throwable


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.