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

import javax.annotation.Nullable;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import de.ivu.elect.business.konfiguration.control.AbstractStreamCreator;

@ApplicationScoped // ELECT-7845
public class ImportExportStreamCreator extends AbstractStreamCreator {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient ImportExportKonfiguration importExportKonfiguration;

  public ImportExportStreamCreator() {
    super();
  }

  @Override
  protected String getAbsolutePath(String dateiname, @Nullable String path) {
    return importExportKonfiguration.getServerVerzeichnisPathFuerDateiname(dateiname, path);
  }
}
