f00f.net.irc.martyr
Class GenericCommandAutoService

java.lang.Object
  |
  +--f00f.net.irc.martyr.GenericCommandAutoService
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
AutoDccSetup

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

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


Constructor Summary
protected GenericCommandAutoService(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericCommandAutoService

protected GenericCommandAutoService(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()

updateCommand

protected void updateCommand(Command command)


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