1 18 package org.alfresco.web.app; 19 20 import javax.faces.event.PhaseEvent; 21 import javax.faces.event.PhaseId; 22 import javax.faces.event.PhaseListener; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 27 32 public class DebugPhaseListener implements PhaseListener 33 { 34 private static final Log logger = LogFactory.getLog(DebugPhaseListener.class); 35 36 39 public void afterPhase(PhaseEvent event) 40 { 41 if (logger.isDebugEnabled()) 42 logger.debug("********** Exiting phase: " + event.getPhaseId().toString()); 43 } 44 45 48 public void beforePhase(PhaseEvent event) 49 { 50 if (logger.isDebugEnabled()) 51 logger.debug("********** Entering phase: " + event.getPhaseId().toString()); 52 } 53 54 57 public PhaseId getPhaseId() 58 { 59 return PhaseId.ANY_PHASE; 60 } 61 62 } 63 | Popular Tags |