maia_modificado/.svn/pristine/c4/c4d122bd29e40236ed799164a3c...

116 lines
2.4 KiB
Plaintext
Executable File

/*
*
*/
package com.fp.bpmlib;
import org.apache.log4j.Logger;
// TODO: Auto-generated Javadoc
/**
* The listener interface for receiving customSystemEvent events. The class that is interested in processing a
* customSystemEvent event implements this interface, and the object created with that class is registered with a
* component using the component's <code>addCustomSystemEventListener<code> method. When
* the customSystemEvent event occurs, that object's appropriate
* method is invoked.
*
*/
public class CustomSystemEventListener implements org.kie.internal.SystemEventListener {
/** Constante LOG. */
private static final Logger LOG = Logger.getLogger(CustomSystemEventListener.class);
/**
* Debug.
*
* @param message the message
*/
@Override
public void debug(String message) {
CustomSystemEventListener.LOG.debug(message);
}
/**
* Debug.
*
* @param message the message
* @param object the object
*/
@Override
public void debug(String message, Object object) {
CustomSystemEventListener.LOG.debug(message + " " + object);
}
/**
* Exception.
*
* @param message the message
* @param e the e
*/
@Override
public void exception(String message, Throwable e) {
CustomSystemEventListener.LOG.error(message, e);
}
/**
* Exception.
*
* @param e the e
*/
@Override
public void exception(Throwable e) {
CustomSystemEventListener.LOG.error(e, e);
}
/**
* Info.
*
* @param message the message
*/
@Override
public void info(String message) {
CustomSystemEventListener.LOG.info(message);
}
/**
* Info.
*
* @param message the message
* @param object the object
*/
@Override
public void info(String message, Object object) {
CustomSystemEventListener.LOG.info(message + " " + object);
}
/**
* Warning.
*
* @param message the message
*/
@Override
public void warning(String message) {
CustomSystemEventListener.LOG.warn(message);
}
/**
* Warning.
*
* @param message the message
* @param object the object
*/
@Override
public void warning(String message, Object object) {
CustomSystemEventListener.LOG.warn(message + " " + object);
}
}