|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object f00f.net.irc.martyr.GenericCommandAutoService f00f.net.irc.martyr.GenericAutoService
public abstract class GenericAutoService
Provides a framework for an auto service. Does enable by default. Splits the 'update' method into two, 'updateState' and 'updateCommand'. Also provides thread safety on all methods.
Field Summary |
---|
Fields inherited from class f00f.net.irc.martyr.GenericCommandAutoService |
---|
connection, enabled |
Constructor Summary | |
---|---|
protected |
GenericAutoService(IRCConnection connection)
|
Method Summary | |
---|---|
void |
disable()
|
void |
enable()
|
void |
update(java.util.Observable observer,
java.lang.Object updated)
|
protected abstract void |
updateState(State state)
|
Methods inherited from class f00f.net.irc.martyr.GenericCommandAutoService |
---|
getConnection, isEnabled, updateCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GenericAutoService(IRCConnection connection)
Method Detail |
---|
public void enable()
enable
in class GenericCommandAutoService
public void disable()
disable
in class GenericCommandAutoService
public void update(java.util.Observable observer, java.lang.Object updated)
update
in interface java.util.Observer
update
in class GenericCommandAutoService
protected abstract void updateState(State state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |