© 2002 BEA Systems, Inc.


com.bea.p13n.events.listeners
Class DebugEventListener

java.lang.Object
  |
  +--com.bea.p13n.events.listeners.DebugEventListener

public class DebugEventListener
extends java.lang.Object
implements EventListener

Simple implementation of EventListener that listenss for all events and simply prints the received events.


Constructor Summary
DebugEventListener()
           
 
Method Summary
 boolean equals(java.lang.Object theOther)
          Implementation of equals so multiple debuggers won't be added to the same handler.
 java.lang.String[] getTypes()
          Return the types we listen for (all of them).
 void handleEvent(Event theEvent)
          Print the Event using its toString to System.err
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugEventListener

public DebugEventListener()
Method Detail

getTypes

public java.lang.String[] getTypes()
Return the types we listen for (all of them). Override this to make a debugger that listens on other types.
Specified by:
getTypes in interface EventListener

Returns:
String[1] containing EventConstants.TYPE_ALL

handleEvent

public void handleEvent(Event theEvent)
Print the Event using its toString to System.err
Specified by:
handleEvent in interface EventListener

Parameters:
theEvent - The event that happened

equals

public boolean equals(java.lang.Object theOther)
Implementation of equals so multiple debuggers won't be added to the same handler. All listeners of the same class are considered equal.

Overrides:
equals in class java.lang.Object

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved