org.specrunner.listeners.core
Class ProfilerSourceListener

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

public class ProfilerSourceListener
extends Object
implements ISourceListener

Logging profiler implementation.

Author:
Thiago Santos

Constructor Summary
ProfilerSourceListener()
           
 
Method Summary
 String getName()
          The listener name.
 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.
 void reset()
          Reset listener state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilerSourceListener

public ProfilerSourceListener()
Method Detail

getName

public String getName()
Description copied from interface: ISpecRunnerListener
The listener name. Used to distinguish between different listeners.

Specified by:
getName in interface ISpecRunnerListener
Returns:
The listener name.

reset

public void reset()
Description copied from interface: ISpecRunnerListener
Reset listener state.

Specified by:
reset in interface ISpecRunnerListener

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.