org.specrunner.listeners.core
Class ContextListenerDestroyer

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

public class ContextListenerDestroyer
extends AbstractContextListener

Populator listener.

Author:
Thiago Santos

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

Constructor Detail

ContextListenerDestroyer

public ContextListenerDestroyer()
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.


onDestroy

public void onDestroy(IContext context)
Description copied from interface: IContextListener
A context destruction.

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


Copyright © 2015. All rights reserved.