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

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.ivu.elect.background.scheduler.AbstractSchedulerServiceAsync;
import de.ivu.elect.background.scheduler.SchedulerEvent;
import de.ivu.elect.business.ergebnis.entity.ErgebnisPK;
import de.ivu.elect.business.internet.entity.PraesentationGenerierenEvent;

@Stateless
@TransactionAttribute(TransactionAttributeType.NEVER)
public class PresentationGenerierenAsync extends AbstractSchedulerServiceAsync<ErgebnisPK> {

  private static final Logger LOG = LoggerFactory.getLogger(PresentationGenerierenAsync.class);

  @Inject
  private transient PraesentationGenerierenEvent event;

  @Inject
  private transient PresentationGenerieren transaction;

  @Override
  protected PresentationGenerieren getServiceTransaction() {
    return transaction;
  }

  @Override
  protected Logger getLog() {
    return LOG;
  }

  @Override
  protected SchedulerEvent getEvent() {
    return event;
  }
}
