org.infoglue.cms.util
Class TransactionHistoryWriter

java.lang.Object
  extended by org.infoglue.cms.util.TransactionHistoryWriter
All Implemented Interfaces:
NotificationListener

public class TransactionHistoryWriter
extends java.lang.Object
implements NotificationListener

This class is a class that logs a message to a Media somewhere (Mostly files). We should utilize log4j or some other logging framework later on.

Author:
Mattias Bogeblad

Constructor Summary
TransactionHistoryWriter()
          Default Constructor
 
Method Summary
 void notify(NotificationMessage notificationMessage)
          This method gets called when a new NotificationMessage is available.
 void setContextParameters(java.util.Map map)
          This method sets the context/arguments the Logger should operate with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionHistoryWriter

public TransactionHistoryWriter()
Default Constructor

Method Detail

setContextParameters

public void setContextParameters(java.util.Map map)
This method sets the context/arguments the Logger should operate with. Could be debuglevels and stuff like that.

Specified by:
setContextParameters in interface NotificationListener

notify

public void notify(NotificationMessage notificationMessage)
This method gets called when a new NotificationMessage is available. The writer just calls the transactionHistoryController which stores it.

Specified by:
notify in interface NotificationListener


Copyright © 2005 InfoGlue.org All Rights Reserved.