/*
 * Copyright 2013 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Eclipse Public License version 1.0, available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.jboss.forge.bootstrap.listener;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.Logger;

import org.jboss.forge.furnace.Furnace;
import org.jboss.forge.furnace.exception.ContainerException;
import org.jboss.forge.furnace.spi.ContainerLifecycleListener;

public class GreetingListener implements ContainerLifecycleListener
{
   private final Logger logger = Logger.getLogger(getClass().getName());

   @Override
   public void beforeStart(Furnace furnace) throws ContainerException
   {
      if (furnace.isServerMode())
      {
         StringWriter sw = new StringWriter();
         PrintWriter out = new PrintWriter(sw, true);
         out.println();
         out.println("    _____                    ");
         out.println("   |  ___|__  _ __ __ _  ___ ");
         out.println("   | |_ / _ \\| `__/ _` |/ _ \\  \\\\");
         out.println("   |  _| (_) | | | (_| |  __/  //");
         out.println("   |_|  \\___/|_|  \\__, |\\___| ");
         out.println("                   |__/      ");
         out.println("");
         out.print("JBoss Forge, version [ ");
         out.print(furnace.getVersion());
         out.print(" ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]");
         out.println();
         logger.info(sw.toString());
         System.out.println(sw.toString());
      }
   }

   @Override
   public void beforeStop(Furnace forge) throws ContainerException
   {
      // Do nothing
   }

   @Override
   public void afterStop(Furnace forge) throws ContainerException
   {
      // Do nothing
   }

   @Override
   public void beforeConfigurationScan(Furnace forge) throws ContainerException
   {
      // Do nothing
   }

   @Override
   public void afterConfigurationScan(Furnace forge) throws ContainerException
   {
      // Do nothing
   }

}

@@ -1530,24 +1530,137 @@
     %7D%0A   %7D%0A%0A
+   @Override%0A   public void afterStart(Furnace furnace) throws ContainerException%0A   %7B%0A      // Do nothing%0A   %7D%0A%0A
    @Override
@@ -1687,35 +1687,37 @@
 reStop(Furnace f
-org
+urnac
 e) throws Contai
@@ -1799,35 +1799,37 @@
 erStop(Furnace f
-org
+urnac
 e) throws Contai
@@ -1925,35 +1925,37 @@
 onScan(Furnace f
-org
+urnac
 e) throws Contai
@@ -2058,19 +2058,21 @@
 urnace f
-org
+urnac
 e) throw

Fix to compile against new ContainerLifecycleListener API