]> source.dussan.org Git - archiva.git/commitdiff
No reason why all the methods on this class should not be static
authorJames William Dumay <jdumay@apache.org>
Mon, 27 Oct 2008 08:58:03 +0000 (08:58 +0000)
committerJames William Dumay <jdumay@apache.org>
Mon, 27 Oct 2008 08:58:03 +0000 (08:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@708112 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/ArchivaStartup.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/Banner.java

index de15ed86ae82eb0f48e4520e30ba1eb6ddd33cff..329667b44e353b53de68911246ca48f68cc19a3e 100644 (file)
@@ -46,14 +46,13 @@ public class ArchivaStartup
         ArchivaTaskScheduler taskScheduler = (ArchivaTaskScheduler) wac.getBean(PlexusToSpringUtils.buildSpringId(ArchivaTaskScheduler.class));
         TaskQueueExecutor databaseUpdateQueue = (TaskQueueExecutor) wac.getBean(PlexusToSpringUtils.buildSpringId(TaskQueueExecutor.class, "database-update"));
         TaskQueueExecutor repositoryScanningQueue = (TaskQueueExecutor) wac.getBean(PlexusToSpringUtils.buildSpringId(TaskQueueExecutor.class, "repository-scanning"));
-        Banner banner = new Banner();
 
         try
         {
             securitySync.startup();
             resolverFactory.startup();
             taskScheduler.startup();
-            banner.display();
+            Banner.display();
         }
         catch ( ArchivaException e )
         {
index ea090e6249a8684e2a4050bf4236b33eb0e4dda7..da272a24bb4022773fbafa26624116619b037c83 100644 (file)
@@ -23,7 +23,6 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 import org.apache.commons.lang.StringUtils;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
 import org.slf4j.LoggerFactory;
 
 /**
@@ -218,7 +217,7 @@ public class Banner
         return injectVersion( decode( encodedBanner ), version );
     }
 
-    public void display() 
+    public static void display()
     {
         String banner = getBanner( ArchivaVersion.determineVersion() );
        LoggerFactory.getLogger( Banner.class ).info( StringUtils.repeat( "_", 25 ) + "\n" + banner );