com.jpattern.service.log.event.InfoEvent Maven / Gradle / Ivy
package com.jpattern.service.log.event;
import com.jpattern.service.log.IExecutor;
/**
*
* @author Francesco Cina'
*
* 09/apr/2010
*/
public class InfoEvent extends AEvent {
/**
*
*/
private static final long serialVersionUID = 1L;
public static String EVENT_NAME = "INFO";
private IMessage message;
public InfoEvent() {
super( EVENT_NAME );
}
public void execute(IExecutor executor) {
executor.execute(this);
}
public IMessage getMessage() {
if (message == null) {
return new NullMessage();
}
return message;
}
public synchronized void fireMessage(IMessage message) {
if ( !isIgnoredPath( message.getClassName() ) ) {
this.message = message;
fire();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy