sg.edu.nus.peer.management
Class EventDispatcherAdapter

java.lang.Object
  extended by sg.edu.nus.util.AbstractPooledSocketHandler
      extended by sg.edu.nus.peer.management.EventDispatcherAdapter
All Implemented Interfaces:
java.lang.Runnable, EventDispatcher, PooledSocketHandler
Direct Known Subclasses:
AbstractEventDispatcher

public class EventDispatcherAdapter
extends AbstractPooledSocketHandler
implements EventDispatcher

An empty class is convenient for creating a concrete event dispatcher.

Version:
1.0 2006-1-7
Author:
Xu Linhao

Constructor Summary
EventDispatcherAdapter()
           
 
Method Summary
 void handleConnection()
          Process the incoming socket requests and reply with a response if necessary.
 void registerActionListeners()
          Register a set of ActionListeners to the PooledSocketHandler for the purpose of processing any incoming network events.
 
Methods inherited from class sg.edu.nus.util.AbstractPooledSocketHandler
processRequest, run, stop, stopAllHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcherAdapter

public EventDispatcherAdapter()
Method Detail

registerActionListeners

public void registerActionListeners()
Description copied from interface: EventDispatcher
Register a set of ActionListeners to the PooledSocketHandler for the purpose of processing any incoming network events.

Specified by:
registerActionListeners in interface EventDispatcher

handleConnection

public void handleConnection()
Description copied from interface: PooledSocketHandler
Process the incoming socket requests and reply with a response if necessary.

Specified by:
handleConnection in interface PooledSocketHandler