org.specrunner.listeners
Interface IPluginListener

All Superinterfaces:
ISpecRunnerListener
All Known Implementing Classes:
AbstractPluginListener, ProfilerPluginListener, TagPluginListener

public interface IPluginListener
extends ISpecRunnerListener

Generic plugin listener. Performs actions before and after plugin initialize()/doStart()/doEnd() methods.

Author:
Thiago Santos

Method Summary
 void onAfterEnd(IPlugin plugin, IContext context, IResultSet result)
          Perform some action after plugin ending.
 void onAfterInit(IPlugin plugin, IContext context, IResultSet result)
          Perform some action after plugin initialization.
 void onAfterStart(IPlugin plugin, IContext context, IResultSet result)
          Perform some action after plugin start.
 void onBeforeEnd(IPlugin plugin, IContext context, IResultSet result)
          Perform some action before plugin ending.
 void onBeforeInit(IPlugin plugin, IContext context, IResultSet result)
          Perform some action before plugin initialization.
 void onBeforeStart(IPlugin plugin, IContext context, IResultSet result)
          Perform some action before plugin start.
 
Methods inherited from interface org.specrunner.listeners.ISpecRunnerListener
getName, reset
 

Method Detail

onBeforeInit

void onBeforeInit(IPlugin plugin,
                  IContext context,
                  IResultSet result)
Perform some action before plugin initialization.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.

onAfterInit

void onAfterInit(IPlugin plugin,
                 IContext context,
                 IResultSet result)
Perform some action after plugin initialization.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.

onBeforeStart

void onBeforeStart(IPlugin plugin,
                   IContext context,
                   IResultSet result)
Perform some action before plugin start.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.

onAfterStart

void onAfterStart(IPlugin plugin,
                  IContext context,
                  IResultSet result)
Perform some action after plugin start.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.

onBeforeEnd

void onBeforeEnd(IPlugin plugin,
                 IContext context,
                 IResultSet result)
Perform some action before plugin ending.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.

onAfterEnd

void onAfterEnd(IPlugin plugin,
                IContext context,
                IResultSet result)
Perform some action after plugin ending.

Parameters:
plugin - The plugin instance.
context - The context.
result - The result.


Copyright © 2014. All rights reserved.