|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.barkerjr.gameserver.Base
public abstract class Base
Provides standard methods for classes in the library
| 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 |
|---|
protected List<Listener> listeners
| Constructor Detail |
|---|
public Base()
| Method Detail |
|---|
public void addListener(Listener listener)
listener - the listener to hook into this serverpublic void removeListener(Listener listener)
listener - the hook to removeprotected void handleError(Throwable error)
error - the error to send
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||