org.apache.maven.werkz
Interface PreGoalCallback

All Known Implementing Classes:
Callback

public interface PreGoalCallback

Interface for callbacks that occur after a Goal's prerequisites have been met, but before any Goal-specific actions have been taken.

Callbacks implementing this interface have the opportunity to change the state of the environment, potentially causing the Goal's Action.requiresAction() to return a different answer.

Author:
bob mcwhirter
See Also:
Goal.attain(org.apache.maven.werkz.Session), Action.requiresAction(), Action.performAction(org.apache.maven.werkz.Session)

Method Summary
 void firePreGoal(Goal goal)
          Fire the callback.
 

Method Detail

firePreGoal

public void firePreGoal(Goal goal)
                 throws java.lang.Exception
Fire the callback.

Parameters:
goal - The Goal.
Throws:
java.lang.Exception - if an error occurs.


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.