1 package org.apache.slide.util.event; 2 3 import org.apache.slide.event.GlobalListener; 4 import org.apache.slide.event.VetoException; 5 import org.apache.slide.event.VetoableEventMethod; 6 import org.apache.slide.event.EventMethod; 7 import org.apache.slide.common.Domain; 8 import org.apache.slide.util.logger.Logger; 9 10 import java.util.EventObject ; 11 12 34 35 public class EventLogger implements GlobalListener { 36 protected static final String LOG_CHANNEL = EventLogger.class.getName(); 37 38 public void vetoableEventFired(VetoableEventMethod method, EventObject event) throws VetoException { 39 Domain.log("Recieved vetoable event with name '"+method.getId()+"': "+event, LOG_CHANNEL, Logger.INFO); 40 } 41 42 public void eventFired(EventMethod method, EventObject event) { 43 Domain.log("Recieved event with name '"+method.getId()+"': "+event, LOG_CHANNEL, Logger.INFO); 44 } 45 } | Popular Tags |