org.activiti.engine.impl.event.logger.AbstractEventFlusher Maven / Gradle / Ivy
package org.activiti.engine.impl.event.logger;
import org.activiti.engine.impl.event.logger.handler.EventLoggerEventHandler;
import org.activiti.engine.impl.interceptor.CommandContext;
import java.util.ArrayList;
import java.util.List;
/**
*/
public abstract class AbstractEventFlusher implements EventFlusher {
protected List eventHandlers = new ArrayList();
@Override
public void closed(CommandContext commandContext) {
// Not interested in closed
}
public List getEventHandlers() {
return eventHandlers;
}
public void setEventHandlers(List eventHandlers) {
this.eventHandlers = eventHandlers;
}
public void addEventHandler(EventLoggerEventHandler databaseEventLoggerEventHandler) {
eventHandlers.add(databaseEventLoggerEventHandler);
}
}