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

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

There is a newer version: 3.0.Beta
Show newest version
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);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy