All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.event.logger.AbstractEventFlusher Maven / Gradle / Ivy

The newest version!
package org.activiti.engine.impl.event.logger;

import java.util.ArrayList;
import java.util.List;

import org.activiti.engine.impl.event.logger.handler.EventLoggerEventHandler;
import org.activiti.engine.impl.interceptor.CommandContext;

/**
 * @author Joram Barrez
 */
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);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy