package de.ivu.elect.business.email.control;

import de.ivu.elect.business.system.entity.BackgroundServiceEvent;
import de.ivu.elect.business.system.entity.SystemLogQuelle;

import javax.enterprise.event.Event;
import javax.inject.Inject;

public class EmailSendenEvent implements BackgroundServiceEvent {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient Event<EmailSendenEvent> event;

  public void sendStartEvent() {
    event.fire(new EmailSendenEvent());
  }

  @Override
  public void sendEvent() {
    sendStartEvent();
  }

  @Override
  public SystemLogQuelle getServiceName() {
    return SystemLogQuelle.EMAIL_SENDEN;
  }

}
