org.specrunner.listeners.core
Class AbstractSourceListener

java.lang.Object
  extended by org.specrunner.listeners.core.AbstractSourceListener
All Implemented Interfaces:
ISourceListener, ISpecRunnerListener

public abstract class AbstractSourceListener
extends Object
implements ISourceListener

Helper for source listeners.

Author:
Thiago Santos

Constructor Summary
AbstractSourceListener()
           
 
Method Summary
 void onAfter(ISource source, IContext context, IResultSet result)
          To be performed after a source execution.
 void onBefore(ISource source, IContext context, IResultSet result)
          To be performed before start a source execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.listeners.ISpecRunnerListener
getName, reset
 

Constructor Detail

AbstractSourceListener

public AbstractSourceListener()
Method Detail

onBefore

public void onBefore(ISource source,
                     IContext context,
                     IResultSet result)
Description copied from interface: ISourceListener
To be performed before start a source execution.

Specified by:
onBefore in interface ISourceListener
Parameters:
source - The specification.
context - A context.
result - A result set.

onAfter

public void onAfter(ISource source,
                    IContext context,
                    IResultSet result)
Description copied from interface: ISourceListener
To be performed after a source execution.

Specified by:
onAfter in interface ISourceListener
Parameters:
source - The specification.
context - A context.
result - A result set.


Copyright © 2014. All rights reserved.