org.specrunner.listeners.core
Class ContextListenerPopulator

java.lang.Object
  extended by org.specrunner.listeners.core.AbstractContextListener
      extended by org.specrunner.listeners.core.ContextListenerPopulator
All Implemented Interfaces:
IContextListener, ISpecRunnerListener

public class ContextListenerPopulator
extends AbstractContextListener

Populator listener.

Author:
Thiago Santos

Constructor Summary
ContextListenerPopulator()
           
 
Method Summary
 String getName()
          The listener name.
 void onCreate(IContext context)
          A context creation.
 void reset()
          Reset listener state.
 
Methods inherited from class org.specrunner.listeners.core.AbstractContextListener
onDestroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextListenerPopulator

public ContextListenerPopulator()
Method Detail

getName

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

Returns:
The listener name.

reset

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


onCreate

public void onCreate(IContext context)
Description copied from interface: IContextListener
A context creation.

Specified by:
onCreate in interface IContextListener
Overrides:
onCreate in class AbstractContextListener
Parameters:
context - A context.


Copyright © 2015. All rights reserved.