org.globalse.arena.matchfrontend
Class ArenaListenerAdapter

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.globalse.arena.matchfrontend.ArenaListenerAdapter
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteArenaListener

public final class ArenaListenerAdapter
extends java.rmi.server.UnicastRemoteObject
implements RemoteArenaListener

This class is an adapter wrapping around a local arena listener so that it can be registered with an arena as a remote arena listener. The adapter publishes an RMI interface and forwards remote notification events from the server to the specified local listener. This removes the need for local arena listeners to be remote objects themselves. There are two reasons behind this class:

Author:
Allen Dutoit
See Also:
RemoteArenaListener, LocalArenaListener, RemoteArena.addListener(java.lang.String, java.lang.String, org.globalse.arena.remote.RemoteArenaListener), Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ArenaListenerAdapter(LocalArenaListener localListener)
           
 
Method Summary
 void leagueInfoChanged(LeagueInfo league)
           
 void matchInfoChanged(MatchInfo matchInfo)
           
 void roundCreated(RoundInfo roundInfo)
           
 void tournamentCreated(TournamentInfo tournament)
           
 void tournamentInfoChanged(TournamentInfo tournament)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArenaListenerAdapter

public ArenaListenerAdapter(LocalArenaListener localListener)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

leagueInfoChanged

public void leagueInfoChanged(LeagueInfo league)
                       throws java.rmi.RemoteException
Specified by:
leagueInfoChanged in interface RemoteArenaListener
Throws:
java.rmi.RemoteException

tournamentCreated

public void tournamentCreated(TournamentInfo tournament)
                       throws java.rmi.RemoteException
Specified by:
tournamentCreated in interface RemoteArenaListener
Throws:
java.rmi.RemoteException

tournamentInfoChanged

public void tournamentInfoChanged(TournamentInfo tournament)
                           throws java.rmi.RemoteException
Specified by:
tournamentInfoChanged in interface RemoteArenaListener
Throws:
java.rmi.RemoteException

roundCreated

public void roundCreated(RoundInfo roundInfo)
                  throws java.rmi.RemoteException
Specified by:
roundCreated in interface RemoteArenaListener
Throws:
java.rmi.RemoteException

matchInfoChanged

public void matchInfoChanged(MatchInfo matchInfo)
                      throws java.rmi.RemoteException
Specified by:
matchInfoChanged in interface RemoteArenaListener
Throws:
java.rmi.RemoteException


Copyright © 2004-2007 Bernd Bruegge & Allen H. Dutoit. All Rights Reserved.