# com.bea.p13n.events.listeners
DebugEventListener Class

public class DebugEventListener
extends `Object`
implements `EventListener`

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

Hierarchy
  `Object`
  `DebugEventListener`

All Implemented Interfaces
  `EventListener`

## Constructor Summary

DebugEventListener()

## Method Summary

`public boolean` | `equals`(`Object` theOther) Implementation of equals so multiple debuggers won't be added to the same handler.
`public `String`[]` | `getTypes`() Return the types we listen for (all of them).
`public void` | `handleEvent`(`Event` theEvent) Print the Event using its toString to System.err

Methods from class `java.lang.`Object``
`clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.p13n.events.`EventListener``
``getTypes`, `handleEvent``

## Constructor Detail

### DebugEventListener

    public DebugEventListener()

## Method Detail

### equals(Object) Method

    public boolean equals(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
  `Object.equals(Object)`

### getTypes() Method

    public String[] getTypes()

Return the types we listen for (all of them). Override this to make a debugger that listens on other types.

#### Returns

String[1] containing EventConstants.TYPE_ALL

### handleEvent(Event) Method

    public void handleEvent(Event theEvent)

Print the Event using its toString to System.err

#### Parameters

theEvent
  The event that happened