org.globalse.arena.matchfrontend
Class ArenaListenerAdapter
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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:
- Match front ends need only to implement
LocalArenaListener and need not worry about
RMI details.
- Only this adapter needs to be in the arena server class path. Local listeners
(which are often game specific) need not. This allows new games to be added without
having to be installed with every match front end.
- Author:
- Allen Dutoit
- See Also:
RemoteArenaListener,
LocalArenaListener,
RemoteArena.addListener(java.lang.String, java.lang.String, org.globalse.arena.remote.RemoteArenaListener),
Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| 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 |
ArenaListenerAdapter
public ArenaListenerAdapter(LocalArenaListener localListener)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
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.