de.kosi.model
Class ProxyFoyerListener

java.lang.Object
  |
  +--de.kosi.model.ProxyFoyerListener
All Implemented Interfaces:
FoyerListener, java.rmi.Remote

public class ProxyFoyerListener
extends java.lang.Object
implements FoyerListener

This class implements a proxy for the FoyerListener. Proxy classes are needed, because the server is not allowed to download code from the client. Therefore no arbitrary classes can be added as listeners. A proxy class does nothing, but forwards all calls to another FoyerListener.

ChangeLog:

 $Log: ProxyFoyerListener.java,v $
 Revision 1.2  2001/07/04 12:34:30  uid30828
 - Rubber score implemented
 - Inviting now working

 Revision 1.1.1.1  2001/04/29 18:05:17  jiriki
 Imported sources from zola.

 Revision 1.4  2001/03/05 20:55:22  login
 - Game (und zugehoerige Klassen) soweit fertig
 - package de.kosi.model.tournament angelegt
 - Pair angelegt
 - Round angelegt
 - Movement-Interface angelegt
 - KosiMovement fertig!!! :-)
 - KosiMovementTest um das KosiMovement zu testen
       (kann mit KOSI/kosimovementtest  aufgerufen werden)
 - Tournament und TournamentImpl in das package de.kosi.model.tournament
       verschoben
 - buildfile fuer die neuen klassen angepasst

 Revision 1.3  2001/02/11 18:18:39  login
 documenting, documenting, I can't think of anything else.....


 

Version:
$Revision: 1.2 $ ($Date: 2001/07/04 12:34:30 $)
Author:
Timo, Niklas, Ole

Constructor Summary
ProxyFoyerListener(FoyerListener listener)
          Creates a new ProxyFoyerListener which forwards all events to the given FoyerListener.
 
Method Summary
 void disconnect()
          Forwards the call of the disconnect() method of the FoyerListener.
 void invite(Table table, User byUser, int direction)
          Forwards the call of the invite(Table) method of the FoyerListener.
 void invite(Tournament tournament)
          Forwards the call of the invite(Tournament) method of the FoyerListener.
 void notify(Game game)
          Forwards the call of the notify(Game) method of the FoyerListener.
 void notify(Table table)
          Forwards the call of the notify(Table) method of the FoyerListener.
 void notify(Tournament tournament)
          Forwards the call of the notify(Tournament) method of the FoyerListener.
 void ping()
          Forwards the call of the ping() method of FoyerListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFoyerListener

public ProxyFoyerListener(FoyerListener listener)
Creates a new ProxyFoyerListener which forwards all events to the given FoyerListener.
Parameters:
listener - The FoyerListener that events are forwarded to.
Method Detail

ping

public void ping()
          throws java.rmi.RemoteException
Forwards the call of the ping() method of FoyerListener.
Specified by:
ping in interface FoyerListener
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

disconnect

public void disconnect()
                throws java.rmi.RemoteException
Forwards the call of the disconnect() method of the FoyerListener.
Specified by:
disconnect in interface FoyerListener
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

invite

public void invite(Table table,
                   User byUser,
                   int direction)
            throws java.rmi.RemoteException
Forwards the call of the invite(Table) method of the FoyerListener.
Specified by:
invite in interface FoyerListener
Parameters:
table - This argument will be given to the listener that events are forwarded to.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

invite

public void invite(Tournament tournament)
            throws java.rmi.RemoteException
Forwards the call of the invite(Tournament) method of the FoyerListener.
Specified by:
invite in interface FoyerListener
Parameters:
tournament - This argument will be given to the listener that all events are forwarded to.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

notify

public void notify(Game game)
            throws java.rmi.RemoteException
Forwards the call of the notify(Game) method of the FoyerListener.
Specified by:
notify in interface FoyerListener
Parameters:
game - This argument will be given to the notify(Game) method of the listener that all events are forwarded to.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

notify

public void notify(Table table)
            throws java.rmi.RemoteException
Forwards the call of the notify(Table) method of the FoyerListener.
Specified by:
notify in interface FoyerListener
Parameters:
table - This argument will be given to the notify(table) method of the listener that all events are forwarded to.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

notify

public void notify(Tournament tournament)
            throws java.rmi.RemoteException
Forwards the call of the notify(Tournament) method of the FoyerListener.
Specified by:
notify in interface FoyerListener
Parameters:
tournament - This argument will be given to the notify(Tournament) method of the listener that all events are forwarded to.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.