
package de.ivu.elect.business;

import javax.enterprise.inject.Specializes;

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

@Specializes
public class CommonStartup extends BaseStartup {

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

  public CommonStartup() {
    super();
  }

  @Override
  protected void init() {
    super.init();

    dumpCommonLogo();
  }

  // http://www.network-science.de/ascii/ascii.php?TEXT=COMMON&x=13&y=16&FONT=cyberlarge&RICH=no&FORM=left&STRE=no&WIDT=70
  private void dumpCommonLogo() {
    String tab = calculateLogoTab(LOG);

    LOG.info(tab + "_______  _____  _______ _______  _____  __   _ ");
    LOG.info(tab + "|       |     | |  |  | |  |  | |     | | \\  |");
    LOG.info(tab + "|_____  |_____| |  |  | |  |  | |_____| |  \\_|");
    LOG.info(tab + "                                               ");
  }
}
