org.apache.maven.jelly.tags.werkz
Class MavenGoalTag.MavenGoalAction

java.lang.Object
  extended byorg.apache.maven.jelly.tags.werkz.MavenGoalTag.MavenGoalAction
All Implemented Interfaces:
Action
Enclosing class:
MavenGoalTag

public class MavenGoalTag.MavenGoalAction
extends java.lang.Object
implements Action

To Do:
refactor into a separate class that gets the necessary variables delegated to it.

Constructor Summary
MavenGoalTag.MavenGoalAction(JellyScriptHousing housing)
           
 
Method Summary
 void performAction(Session session)
          Perform the action required to satisfy the Goal.
 boolean requiresAction()
          Determine if this Action's performAction(org.apache.maven.werkz.Session) method should be invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenGoalTag.MavenGoalAction

public MavenGoalTag.MavenGoalAction(JellyScriptHousing housing)
Method Detail

performAction

public void performAction(Session session)
                   throws java.lang.Exception
Description copied from interface: Action
Perform the action required to satisfy the Goal.

Once all prerequisites have been satisfied, the Goal's performAction() method may be invoked, depending on the return value of Action.requiresAction(), in order to satisfy this Goal.

Specified by:
performAction in interface Action
Throws:
java.lang.Exception - if an errors occurs during execution.

requiresAction

public boolean requiresAction()
Description copied from interface: Action
Determine if this Action's Action.performAction(org.apache.maven.werkz.Session) method should be invoked.

This method is called after this Goal's prerequisites have been completely satisfied, and immediately before the possibility of invoking performAction().

If this method returns true, then this Goal's performAction() will be called in order to satisfy this Goal. If this method returns false, then this Goal is considered satisfied without invoking the performAction() method.

This method is the location to implement intra-goal dependency-checking.

Specified by:
requiresAction in interface Action
Returns:
true if this Goal's performAction() method should be immediately invoked, otherwise false.
See Also:
Action.performAction(org.apache.maven.werkz.Session)


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