org.codehaus.aspectwerkz.joinpoint
Interface JoinPoint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CallerSideJoinPoint, FieldJoinPoint, MethodJoinPoint, ThrowsJoinPoint

public interface JoinPoint
extends java.io.Serializable

Interface for the join point concept.
I.e.a well defined point of execution in the program picked out by the Pointcut.
Handles the invocation of the advices added to the join point.
Stores meta data from the join point.

Author:
Jonas Bonér

Method Summary
 java.lang.Class getTargetClass()
          Returns the target class.
 java.lang.Object getTargetObject()
          Returns the target object.
 java.lang.Object proceed()
          Invokes the next advice in the chain A when it reaches the end of the chain it invokes the original method.
 java.lang.Object proceedInNewThread()
          To be called instead of proceed() when a new thread is spawned.
 

Method Detail

proceed

public java.lang.Object proceed()
                         throws java.lang.Throwable
Invokes the next advice in the chain A when it reaches the end of the chain it invokes the original method.

Returns:
the result from the next invocation
Throws:
java.lang.Throwable

proceedInNewThread

public java.lang.Object proceedInNewThread()
                                    throws java.lang.Throwable
To be called instead of proceed() when a new thread is spawned. or the the result will be unpredicable.

Returns:
the result from the next invocation
Throws:
java.lang.Throwable

getTargetObject

public java.lang.Object getTargetObject()
Returns the target object.

Returns:
the target object

getTargetClass

public java.lang.Class getTargetClass()
Returns the target class.

Returns:
the target class


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.