Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Created on Jun 22, 2010, 1:53:26 AM
 
 package com.dmurph.mvc;

Default monitor for MVC.getGlobalEventMonitor(), warns the developer through java.lang.System.out that an event has no listeners.
 
public class WarningMonitor implements IGlobalEventMonitor {

	public void afterDispatch(MVCEvent argEvent) {}

	public void beforeDispatch(MVCEvent argEvent) {}

Warns to the console that an event has no listeners

	public void noListeners(MVCEvent argEvent) {
		..println(I18n.getText("monitor.noListeners"argEvent.key));
	}
New to GrepCode? Check out our FAQ X