test.implementation.notification.support
Class Listener

java.lang.Object
  extended by test.implementation.notification.support.Listener
All Implemented Interfaces:
EventListener, NotificationListener

public class Listener
extends Object
implements NotificationListener

A listener

Author:
Adrian Brock.

Field Summary
 HashMap notifications
          The notifications received by handback object
 boolean waiting
           
 
Constructor Summary
Listener()
          Constructor
 
Method Summary
 void doNotify(boolean expected)
           
 void doWait(boolean value)
           
 void handleNotification(Notification notification, Object handback)
          Handle the notification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notifications

public HashMap notifications
The notifications received by handback object


waiting

public boolean waiting
Constructor Detail

Listener

public Listener()
Constructor

Method Detail

handleNotification

public void handleNotification(Notification notification,
                               Object handback)
Handle the notification

Specified by:
handleNotification in interface NotificationListener

doWait

public void doWait(boolean value)

doNotify

public void doNotify(boolean expected)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.