com.xenonsoft.bridgetown.aop
Interface IInterceptionContext

All Known Implementing Classes:
DefaultInterceptionContext

public interface IInterceptionContext

The interface to an aspect oriented interception context. It provides the information for a "weave" operation.

Most importantly, the interfaces enables the execution "around" the aspect with the proceed() call. A typical implementation provides the details of the pointcut getPointCut(). The interface provides access to the arguments getParameters().

Additionally information is provided as a programming convenience: the invocation class getInvocationClass() of the method interception and the invocation method name getInvocationMethod()

Version:
$Id: IInterceptionContext.java,v 1.1 2004/09/22 02:16:59 peter_pilgrim Exp $
Author:
peterp, 20-Sep-2004

Method Summary
 java.lang.Object getBean()
          Returns the object that is ultimately being advised
 java.lang.Class getInvocationClass()
          Retrieves the intercepted Java class
 java.lang.reflect.Method getInvocationMethod()
          Retrieves the intercepted Java reflected method
 java.lang.Object[] getParameters()
          Retrieves the method parameters
 IPointCut getPointCut()
          Gets the point cut responsible for this aspect oriented weave.
 java.lang.Object proceed()
          Proceeds to the object method that is being advised.
 

Method Detail

getPointCut

public IPointCut getPointCut()
Gets the point cut responsible for this aspect oriented weave.

Returns:
the point cut

getInvocationClass

public java.lang.Class getInvocationClass()
Retrieves the intercepted Java class

Returns:

getInvocationMethod

public java.lang.reflect.Method getInvocationMethod()
Retrieves the intercepted Java reflected method

Returns:
the Java method

getBean

public java.lang.Object getBean()
Returns the object that is ultimately being advised

Returns:
bean the bean object

getParameters

public java.lang.Object[] getParameters()
Retrieves the method parameters

Returns:
the method parameters

proceed

public java.lang.Object proceed()
                         throws java.lang.Throwable
Proceeds to the object method that is being advised. Method Interceptors will call this method to force the thread-of-control to execute the target method pointcut.

Returns:
the return object of the advised method.
Throws:
java.lang.Throwable


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.