net.barkerjr.gameserver
Class Base

java.lang.Object
  extended by net.barkerjr.gameserver.Base
Direct Known Subclasses:
GameServer, ValveServerList

public abstract class Base
extends Object

Provides standard methods for classes in the library

Since:
2008-02-03
Author:
BarkerJr

Field Summary
protected  List<Listener> listeners
          Any listeners which should be triggered when data is loaded or changed
 
Constructor Summary
Base()
           
 
Method Summary
 void addListener(Listener listener)
          Hooks a change listener
protected  void handleError(Throwable error)
          Sends error to the listeners, if there are any
 void removeListener(Listener listener)
          Removes the given hook from this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected List<Listener> listeners
Any listeners which should be triggered when data is loaded or changed

Since:
2007-10-25
Constructor Detail

Base

public Base()
Method Detail

addListener

public void addListener(Listener listener)
Hooks a change listener

Parameters:
listener - the listener to hook into this server
Since:
2007-10-25

removeListener

public void removeListener(Listener listener)
Removes the given hook from this object

Parameters:
listener - the hook to remove
Since:
2007-10-25

handleError

protected void handleError(Throwable error)
Sends error to the listeners, if there are any

Parameters:
error - the error to send
Since:
2008-02-03