f00f.net.irc.martyr
Class GenericAutoService

java.lang.Object
  |
  +--f00f.net.irc.martyr.GenericCommandAutoService
        |
        +--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.


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)
Overrides:
update in class GenericCommandAutoService

updateState

protected abstract void updateState(State state)


Copyright © 2000,2001,2002,2003 f00f networks.