jtge.engine.io
Class ChannelObserverAdapter

java.lang.Object
  extended byjtge.engine.io.ChannelObserverAdapter
All Implemented Interfaces:
IChannelObserver

public class ChannelObserverAdapter
extends java.lang.Object
implements IChannelObserver

Adapts a status observer into a channel observer.

Version:
$Revision: 1.1 $ $Date: 2005/08/29 17:41:32 $
Author:
Mathieu Champlon

Constructor Summary
ChannelObserverAdapter(IStatusObserver observer)
          Create a channel observer adapter.
 
Method Summary
 void connected(IInput input, IOutput output)
          Notify the connection success.
 void disconnected(IInput input, IOutput output)
          Notify the disconnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelObserverAdapter

public ChannelObserverAdapter(IStatusObserver observer)
Create a channel observer adapter.

Parameters:
observer - the status observer to wrap
Method Detail

connected

public final void connected(IInput input,
                            IOutput output)
Notify the connection success.

Specified by:
connected in interface IChannelObserver
Parameters:
input - the channel input
output - the channel output

disconnected

public final void disconnected(IInput input,
                               IOutput output)
Notify the disconnection.

Specified by:
disconnected in interface IChannelObserver
Parameters:
input - the channel input
output - the channel output


Copyright © 2003-2005 . All Rights Reserved.