com.xenonsoft.bridgetown.aop.helper
Class BeforeAdviceAdaptor

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

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

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

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

Constructor Summary
BeforeAdviceAdaptor()
          Default constructor
 
Method Summary
abstract  java.lang.Object before(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
          The before 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

BeforeAdviceAdaptor

public BeforeAdviceAdaptor()
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)

before

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

Parameters:
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.