private static final Log log = LogFactory.getLog(EventListener.class);
@Override
public void update(Observable o, Object arg) {
if(arg instanceof Event) {
Event event = (Event) arg;
if(log.isDebugEnabled()) {
log.debug(String.format("Event received: %s", event.getClass().getName()));
}
onEvent(event);
}
}