f00f.net.irc.martyr
Class GenericAutoService

java.lang.Object
  extended by f00f.net.irc.martyr.GenericCommandAutoService
      extended by f00f.net.irc.martyr.GenericAutoService
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
AutoJoin, AutoReconnect, AutoRegister

public abstract class GenericAutoService
extends GenericCommandAutoService

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

GenericAutoService

protected GenericAutoService(IRCConnection connection)
Method Detail

enable

public void enable()
Overrides:
enable in class GenericCommandAutoService

disable

public void disable()
Overrides:
disable in class GenericCommandAutoService

update

public void update(java.util.Observable observer,
                   java.lang.Object updated)
Specified by:
update in interface java.util.Observer
Overrides:
update in class GenericCommandAutoService

updateState

protected abstract void updateState(State state)


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.