com.xenonsoft.bridgetown.aop
Interface IMethodInterceptor

All Known Implementing Classes:
AfterAdviceAdaptor, BeforeAdviceAdaptor, DebugInterceptor, SimpleJDBCTransactionInterceptor, ThrowsExceptionAdviceAdaptor, ThrowsRemoteExceptionAdviceAdaptor, TransactionMethodInterceptor

public interface IMethodInterceptor

A contract interface for a method interceptor. The interception point where the application can weave a specialised behaviour before and after the target aspect.

Version:
$Id: IMethodInterceptor.java,v 1.2 2004/09/29 03:26:00 peter_pilgrim Exp $
Author:
peterp, 20-Sep-2004

Method Summary
 java.lang.Object invocation(IInterceptionContext context)
          Invocation method that is a called by the Aspect Oriented framework implementation.
 

Method Detail

invocation

public java.lang.Object invocation(IInterceptionContext context)
                            throws java.lang.Throwable
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.

Parameters:
context - the interception context
Returns:
the object returned by the target aspect. A void Java method returns null in most AOP weaver implementations.
Throws:
a - weaved method can in theory raise any Java exception or not raise it.
java.lang.Throwable


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.