1 20 package org.enhydra.barracuda.contrib.dbroggisch.page; 21 22 import java.io.IOException ; 23 import javax.servlet.ServletException ; 24 import org.enhydra.barracuda.core.event.ControlEventContext; 25 import org.enhydra.barracuda.core.event.EventException; 26 import org.apache.log4j.Logger; 27 28 29 37 public class DummyPageHandler extends PageEventListener { 38 39 private static final Logger logger = Logger.getLogger(DummyPageHandler.class.getName()); 40 41 public void handleControlEvent(ControlEventContext context, Page page) 42 throws EventException, ServletException , IOException { 43 context.getEvent().setHandled(true); 44 if (logger.isDebugEnabled()) logger.debug("Event " + context.getEvent().getClass().getName() + " associated with Page " + page.getClass().getName() + " set as handled"); 45 } 46 47 } 48 | Popular Tags |