/*
 * The MIT License
 *
 * Copyright 2015 Ivar Grimstad (ivar.grimstad@gmail.com).
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package eu.agilejava.snoopee;

import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Singleton;
import javax.ejb.Startup;

/**
 *
 * @author Ivar Grimstad (ivar.grimstad@gmail.com)
 */
@Startup
@Singleton
public class SnoopEEService {

   private static final Logger LOGGER = Logger.getLogger("eu.agilejava.snoopee");

   @PostConstruct
   private void start() {

        // http://www.network-science.de/ascii/ Font: big
        LOGGER.config("  _____                         ______ ______ ");
        LOGGER.config(" / ____|                       |  ____|  ____|");
        LOGGER.config("| (___  _ __   ___   ___  _ __ | |__  | |__   ");
        LOGGER.config(" \\___ \\| '_ \\ / _ \\ / _ \\| '_ \\|  __| |  __|  ");
        LOGGER.config(" ____) | | | | (_) | (_) | |_) | |____| |____ ");
        LOGGER.config("|_____/|_| |_|\\___/ \\___/| .__/|______|______|");
        LOGGER.config("                         | |                  ");
        LOGGER.config("                         |_|                  ");

   }
   
   @PreDestroy
   private void stop() {
      LOGGER.severe("SnoopEE stopped");
   }
}

@@ -1354,19 +1354,16 @@
 p;%0A%0A/**%0A
- *%0A
  * @auth
@@ -1459,24 +1459,25 @@
 rvice %7B%0A%0A   
+ 
 private stat
@@ -1547,16 +1547,17 @@
 %22);%0A%0A   
+ 
 @PostCon
@@ -1563,16 +1563,17 @@
 nstruct%0A
+ 
    priva
@@ -1587,24 +1587,26 @@
  start() %7B%0A%0A
+//
         // h
@@ -1651,16 +1651,18 @@
 nt: big%0A
+//
         
@@ -1718,32 +1718,34 @@
 ____ ______ %22);%0A
+//
         LOGGER.c
@@ -1793,32 +1793,34 @@
 ____%7C  ____%7C%22);%0A
+//
         LOGGER.c
@@ -1872,24 +1872,26 @@
 %7C %7C__   %22);%0A
+//
         LOGG
@@ -1953,24 +1953,26 @@
 %7C  __%7C  %22);%0A
+//
         LOGG
@@ -2028,24 +2028,26 @@
 %7C %7C____ %22);%0A
+//
         LOGG
@@ -2105,24 +2105,26 @@
 %7C______%7C%22);%0A
+//
         LOGG
@@ -2184,16 +2184,18 @@
     %22);%0A
+//
         
@@ -2267,14 +2267,666 @@
 %0A   
-%7D%0A   %0A
+     // http://www.ascii-art-generator.org/ Font: slant%0A        LOGGER.config(() -%3E %22%22);%0A        LOGGER.config(() -%3E %22   _____                         ____________   __  ____               %22);%0A        LOGGER.config(() -%3E%22  / ___/____  ____  ____  ____  / ____/ ____/  /  %7C/  (_)_____________ %22);%0A        LOGGER.config(() -%3E%22  %5C%5C__ %5C%5C/ __ %5C%5C/ __ %5C%5C/ __ %5C%5C/ __ %5C%5C/ __/ / __/    / /%7C_/ / / ___/ ___/ __ %5C%5C%22);%0A        LOGGER.config(() -%3E%22 ___/ / / / / /_/ / /_/ / /_/ / /___/ /___   / /  / / / /__/ /  / /_/ /%22);%0A        LOGGER.config(() -%3E%22/____/_/ /_/%5C%5C____/%5C%5C____/ .___/_____/_____/  /_/  /_/_/%5C%5C___/_/   %5C%5C____/ %22);%0A        LOGGER.config(() -%3E %22%22);%0A    %7D%0A%0A%0A 
    @
@@ -2936,16 +2936,17 @@
 Destroy%0A
+ 
    priva
@@ -2964,24 +2964,26 @@
 p() %7B%0A      
+ 
+ 
 LOGGER.sever
@@ -3004,15 +3004,16 @@
 pped%22);%0A
+ 
    %7D%0A%7D%0A

Update ascii art