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

import javax.enterprise.inject.Specializes;

import de.ivu.elect.business.wahl.entity.NlWahlCustomData;
import de.ivu.elect.business.wahl.entity.NlWahlPhase;
import de.ivu.elect.jee.entity.customdata.DefaultCustomData;

@Specializes
public class NlWasWahlCustomDataFactory extends NlWahlCustomDataFactory {

  private static final long serialVersionUID = 1L;

  public NlWasWahlCustomDataFactory() {
    super();
  }

  @Override
  public DefaultCustomData createCustomData() {
    NlWahlCustomData nlWahlCustomData = (NlWahlCustomData) super.createCustomData();
    nlWahlCustomData.setNlWahlPhase(NlWahlPhase.INITIAL);

    return nlWahlCustomData;
  }
}
