org.codehaus.aspectwerkz.joinpoint.management
Class AroundAdviceExecutor

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.management.AroundAdviceExecutor
All Implemented Interfaces:
Serializable

public class AroundAdviceExecutor
extends Object
implements Serializable

Handles the execution of the around advices.

Author:
Jonas Bonér , Alexandre Vasseur
See Also:
Serialized Form

Constructor Summary
AroundAdviceExecutor(AdviceInfo[] adviceIndexes, int joinPointType)
          Creates a new around advice executor.
 
Method Summary
 boolean hasAdvices()
          Checks if the executor has any advices.
 Object proceed(JoinPointBase joinPoint)
          Executes its advices one by one.
 void reset()
          Resets the invocation flow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AroundAdviceExecutor

public AroundAdviceExecutor(AdviceInfo[] adviceIndexes,
                            int joinPointType)
Creates a new around advice executor.

Parameters:
adviceIndexes -
joinPointType -
Method Detail

proceed

public Object proceed(JoinPointBase joinPoint)
               throws Throwable
Executes its advices one by one. After the last advice has been executed, the original method is invoked.

Parameters:
joinPoint - the current join point
Returns:
the result from the next advice in the chain or the invocation of the target method
Throws:
Throwable

hasAdvices

public boolean hasAdvices()
Checks if the executor has any advices.

Returns:
true if it has advices

reset

public void reset()
Resets the invocation flow.

Will restart the execution chain of advice.



Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.