2 * Copyright © 2020 Orange, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package io.lighty.controllers.tpce.utils;
10 import org.slf4j.Logger;
11 import org.slf4j.LoggerFactory;
13 public final class TpceBanner {
15 private static final String[] BANNER = {
16 " ___________ ___________________ ___________",
17 " \\__ ___/ \\______ \\_ ___ \\\\_ _____/",
18 " | | ______ | ___/ \\ \\/ | __)_",
19 " | | /_____/ | | \\ \\____| \\",
20 " |____| |____| \\______ /_______ /",
22 ".__ .__ .__ __ .__ ",
23 "| | |__| ____ | |___/ |_ ___.__. |__| ____ ",
24 "| | | |/ ___\\| | \\ __< | | | |/ _ \\",
25 "| |_| / /_/ > Y \\ | \\___ | | ( <_> )",
26 "|____/__\\___ /|___| /__| / ____| /\\ |__|\\____/",
27 "/_____/ \\/ \\/ \\/ ",
28 "Starting lighty.io TransportPCE application ...",
30 "https://github.com/PantheonTechnologies/lighty-core" };
32 private static final Logger LOG = LoggerFactory.getLogger(TpceBanner.class);
35 * Private constructor.
37 private TpceBanner() {
41 public static void print() {
42 for (String line : BANNER) {
45 LOG.info(":: Version :: {}", getVersion());
48 private static String getVersion() {
49 Package tpcePackage = TpceBanner.class.getPackage();
50 if (tpcePackage != null && tpcePackage.getImplementationVersion() != null) {
51 return tpcePackage.getImplementationVersion();