talx x1.0.5

talx.controller
Class TALLogger

java.lang.Object
  extended bytalx.controller.TALLogger
All Implemented Interfaces:
java.awt.event.AWTEventListener, ControllerListener, java.util.EventListener, ReceiverFilterListener, SenderFilterListener, StoreListener

public class TALLogger
extends java.lang.Object
implements java.awt.event.AWTEventListener, StoreListener, SenderFilterListener, ReceiverFilterListener, ControllerListener

Provides logging services for normal system events. This class provides the connector between the tal IU and the logger classes. This controller subscribes this object as a listener to all the system components and this object is responsible for packaging the events and sending them to LoggerProxy. Subclasses of this class can override the individual listener methods to log the events differently. Subclasses must provide a constructor with the same parameters in the same order in order to be inter-operable in the controller.


Field Summary
static java.lang.String ABORTING_MAIL_KEY
           
static java.lang.String DELETING_MAIL_KEY
           
static java.lang.String DROPPING_MAIL_KEY
           
static java.lang.String FILTERING_MAIL_KEY
           
static java.lang.String KEY_PRESSED_KEY
           
static java.lang.String KEY_TYPED_KEY
           
static java.lang.String LOGON_PSEUDO_ACTION
           
static java.lang.String MOUSE_CLICKED_KEY
           
static java.lang.String POSTPONING_MAIL_KEY
           
static java.lang.String READING_MAIL_KEY
           
static java.lang.String RECEIVING_MAIL_KEY
           
static java.lang.String SENDING_MAIL_KEY
           
static java.lang.String TALX_APPLICATION_KEY
           
 
Constructor Summary
TALLogger(TransportToolkit mailstore, MailSystemDesktop ms, Settings settings, Controller controller, ReceiverFilter instack, SenderFilter outstack)
           
 
Method Summary
 void controllerChange(ControllerChangeEvent ev)
          Not logged.
 void controllerChangeFinished(ChangeFinishedEvent ev)
          Logs the event.
 void controllerChangeVetoed(ActionVetoException ex)
          Sent when the system has decided not to transition on a user action.
 void deleteMail(DeleteMailEvent ev)
          Logs the event.
 void eventDispatched(java.awt.AWTEvent event)
          Logs some events.
 void filterActivated(TALMailEvent ev)
          Logs the event.
 void mailAborted(ComposeMailEvent ev)
          Logs the event.
 void mailPostponed(ComposeMailEvent ev)
          Logs the event.
 void messageArrived(NewMailEvent ev)
          Logs the event.
 void messageDropped(DeleteMailEvent ev)
          Logs the event.
 void newMailArrived(TALMailEvent ev)
          Not logged.
 void readMail(ReadMailEvent ev)
          Logs the event.
 void release()
           
 void sendingAutoMail(TALMailEvent ev)
          Not logged.
 void sendingMail(ComposeMailEvent ev)
          Logs the event.
 void sendingMail(TALMailEvent ev)
          Not logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOUSE_CLICKED_KEY

public static final java.lang.String MOUSE_CLICKED_KEY
See Also:
Constant Field Values

KEY_TYPED_KEY

public static final java.lang.String KEY_TYPED_KEY
See Also:
Constant Field Values

KEY_PRESSED_KEY

public static final java.lang.String KEY_PRESSED_KEY
See Also:
Constant Field Values

RECEIVING_MAIL_KEY

public static final java.lang.String RECEIVING_MAIL_KEY
See Also:
Constant Field Values

SENDING_MAIL_KEY

public static final java.lang.String SENDING_MAIL_KEY
See Also:
Constant Field Values

READING_MAIL_KEY

public static final java.lang.String READING_MAIL_KEY
See Also:
Constant Field Values

DROPPING_MAIL_KEY

public static final java.lang.String DROPPING_MAIL_KEY
See Also:
Constant Field Values

DELETING_MAIL_KEY

public static final java.lang.String DELETING_MAIL_KEY
See Also:
Constant Field Values

ABORTING_MAIL_KEY

public static final java.lang.String ABORTING_MAIL_KEY
See Also:
Constant Field Values

POSTPONING_MAIL_KEY

public static final java.lang.String POSTPONING_MAIL_KEY
See Also:
Constant Field Values

FILTERING_MAIL_KEY

public static final java.lang.String FILTERING_MAIL_KEY
See Also:
Constant Field Values

TALX_APPLICATION_KEY

public static final java.lang.String TALX_APPLICATION_KEY
See Also:
Constant Field Values

LOGON_PSEUDO_ACTION

public static final java.lang.String LOGON_PSEUDO_ACTION
See Also:
Constant Field Values
Constructor Detail

TALLogger

public TALLogger(TransportToolkit mailstore,
                 MailSystemDesktop ms,
                 Settings settings,
                 Controller controller,
                 ReceiverFilter instack,
                 SenderFilter outstack)
Method Detail

release

public void release()

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
Logs some events. This method logs:

Specified by:
eventDispatched in interface java.awt.event.AWTEventListener

messageArrived

public void messageArrived(NewMailEvent ev)
Logs the event.

Specified by:
messageArrived in interface StoreListener

readMail

public void readMail(ReadMailEvent ev)
Logs the event.

Specified by:
readMail in interface StoreListener

deleteMail

public void deleteMail(DeleteMailEvent ev)
Logs the event.

Specified by:
deleteMail in interface StoreListener

messageDropped

public void messageDropped(DeleteMailEvent ev)
Logs the event.

Specified by:
messageDropped in interface StoreListener

sendingMail

public void sendingMail(ComposeMailEvent ev)
Logs the event.

Specified by:
sendingMail in interface StoreListener

sendingAutoMail

public void sendingAutoMail(TALMailEvent ev)
Not logged.

Specified by:
sendingAutoMail in interface StoreListener

mailAborted

public void mailAborted(ComposeMailEvent ev)
Logs the event.

Specified by:
mailAborted in interface StoreListener

mailPostponed

public void mailPostponed(ComposeMailEvent ev)
Logs the event.

Specified by:
mailPostponed in interface StoreListener

filterActivated

public void filterActivated(TALMailEvent ev)
Logs the event.

Specified by:
filterActivated in interface SenderFilterListener

newMailArrived

public void newMailArrived(TALMailEvent ev)
Not logged.

Specified by:
newMailArrived in interface ReceiverFilterListener

sendingMail

public void sendingMail(TALMailEvent ev)
Not logged.

Specified by:
sendingMail in interface SenderFilterListener

controllerChange

public void controllerChange(ControllerChangeEvent ev)
Not logged.

Specified by:
controllerChange in interface ControllerListener

controllerChangeVetoed

public void controllerChangeVetoed(ActionVetoException ex)
Description copied from interface: ControllerListener
Sent when the system has decided not to transition on a user action.

Specified by:
controllerChangeVetoed in interface ControllerListener

controllerChangeFinished

public void controllerChangeFinished(ChangeFinishedEvent ev)
Logs the event.

Specified by:
controllerChangeFinished in interface ControllerListener

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.