jtge.engine.io
Class OutputRegistrer

java.lang.Object
  extended byjtge.engine.io.OutputRegistrer
All Implemented Interfaces:
IConnectionObserver, IDisconnectionObserver, ISessionManager

public class OutputRegistrer
extends java.lang.Object
implements ISessionManager

Registers and unregisters outputs into the given subject.

Version:
$Revision: 1.2 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Constructor Summary
OutputRegistrer(Subject subject)
          Create an input/output manager.
 
Method Summary
 void close()
          Close the session.
 void closed(IInput input)
          Notify the closing of an input.
 void closed(IOutput output)
          Notify the closing of an output.
 void opened(IInput input, IOutput output)
          Notify the opening of an input and/or output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputRegistrer

public OutputRegistrer(Subject subject)
Create an input/output manager.

Parameters:
subject - the subject to register/unregister outputs into
Method Detail

opened

public final void opened(IInput input,
                         IOutput output)
Notify the opening of an input and/or output.

Specified by:
opened in interface IConnectionObserver
Parameters:
input - the input or null if none
output - the input or null if none

closed

public final void closed(IInput input)
Notify the closing of an input.

Specified by:
closed in interface IDisconnectionObserver
Parameters:
input - the closed input

closed

public final void closed(IOutput output)
Notify the closing of an output.

Specified by:
closed in interface IDisconnectionObserver
Parameters:
output - the closed output

close

public final void close()
Close the session.

Specified by:
close in interface ISessionManager


Copyright © 2003-2005 . All Rights Reserved.