com.xenonsoft.bridgetown.aop.helper
Class ThrowsRemoteExceptionAdviceAdaptor

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

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

An adaptor class that makes it easier to write a convenient "Throws" advice on the method interceptor, because this class will react to java.rmi.RemoteException exceptions.

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

Constructor Summary
ThrowsRemoteExceptionAdviceAdaptor()
          Default constructor
 
Method Summary
abstract  void afterThrowing(java.rmi.RemoteException excp, 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)
          Invocation method that is a called by the Aspect Oriented framework implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowsRemoteExceptionAdviceAdaptor

public ThrowsRemoteExceptionAdviceAdaptor()
Default constructor

Method Detail

invocation

public java.lang.Object invocation(IInterceptionContext context)
                            throws java.lang.Throwable
Description copied from interface: IMethodInterceptor
Invocation method that is a called by the Aspect Oriented framework implementation.

The AOP weaver implementation supplies a context IInterceptionContext so that application writer can examine the pointcut information and most importantly invoke the target method.

Specified by:
invocation in interface IMethodInterceptor
Parameters:
context -
Returns:
Throws:
java.lang.Throwable
See Also:
IMethodInterceptor.invocation(com.xenonsoft.bridgetown.aop.IInterceptionContext)

afterThrowing

public abstract void afterThrowing(java.rmi.RemoteException excp,
                                   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:
excp - the remote exception raised by the joinpoint.
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.