1 23 24 package org.infoglue.cms.util; 25 26 import java.util.Map ; 27 28 import org.apache.log4j.Logger; 29 import org.infoglue.cms.controllers.kernel.impl.simple.TransactionHistoryController; 30 31 32 39 public class TransactionHistoryWriter implements NotificationListener 40 { 41 private final static Logger logger = Logger.getLogger(TransactionHistoryWriter.class.getName()); 42 43 44 47 48 public TransactionHistoryWriter() 49 { 50 } 51 52 56 57 public void setContextParameters(Map map) 58 { 59 } 60 61 65 66 public void notify(NotificationMessage notificationMessage) 67 { 68 try 69 { 70 logger.info("Update TransactionHistory...."); 71 TransactionHistoryController.getController().create(notificationMessage); 72 } 73 catch(Exception e) 74 { 75 e.printStackTrace(); 76 } 77 } 78 79 } 80 | Popular Tags |