org.specrunner.listeners
Interface INodeListener

All Superinterfaces:
ISpecRunnerListener
All Known Implementing Classes:
AbstractNodeListener, PauseOnFailureNodeListener, ScenarioFrameListener

public interface INodeListener
extends ISpecRunnerListener

Generic node listener. Performs actions before and after plugin IRunner.run(...) methods.

Author:
Thiago Santos

Method Summary
 void onAfter(nu.xom.Node node, IContext context, IResultSet result)
          Perform some action after plugin execution for a given node.
 ENext onBefore(nu.xom.Node node, IContext context, IResultSet result)
          Perform some action before building plugin for a given node.
 
Methods inherited from interface org.specrunner.listeners.ISpecRunnerListener
getName, reset
 

Method Detail

onBefore

ENext onBefore(nu.xom.Node node,
               IContext context,
               IResultSet result)
Perform some action before building plugin for a given node.

Parameters:
node - The node.
context - The context.
result - The result.
Returns:
The next step on execution. If return is ENext.DEEP, the execution should go deeper.

onAfter

void onAfter(nu.xom.Node node,
             IContext context,
             IResultSet result)
Perform some action after plugin execution for a given node.

Parameters:
node - The node.
context - The context.
result - The result.


Copyright © 2014. All rights reserved.