f00f.net.irc.martyr
Class GenericAutoService

java.lang.Object
  |
  +--f00f.net.irc.martyr.GenericAutoService
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
AutoJoin, AutoReconnect, AutoRegister, IRCConsole.CommandListener

public class GenericAutoService
extends java.lang.Object
implements java.util.Observer

Provides a framework for an auto service. Does not enable by default. Splits the 'update' method into two, 'updateState' and 'updateCommand'. Also provides thread safety on all methods.


Constructor Summary
protected GenericAutoService(IRCConnection connection)
           
 
Method Summary
 void disable()
           
 void enable()
           
protected  IRCConnection getConnection()
           
protected  boolean isEnabled()
           
 void update(java.util.Observable observer, java.lang.Object updated)
           
protected  void updateCommand(Command command)
           
protected  void updateState(State state)
           
 
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()

disable

public void disable()

update

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

getConnection

protected IRCConnection getConnection()

isEnabled

protected boolean isEnabled()

updateState

protected void updateState(State state)

updateCommand

protected void updateCommand(Command command)


Copyright ? 2000,2001, f00f networks. All Rights Reserved.