org.codehaus.aspectwerkz.joinpoint.management
Class BeforeAdviceExecutor

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

public class BeforeAdviceExecutor
extends Object
implements Serializable

Handles the execution of the before advices.

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

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

Constructor Detail

BeforeAdviceExecutor

public BeforeAdviceExecutor(AdviceInfo[] adviceIndexes)
Creates a new advice executor.

Parameters:
adviceIndexes -
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:
null
Throws:
Throwable

hasAdvices

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

Returns:
true if it has advices


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