checkstyleZZ
[utils] / crawler / basic / src / org / wamblee / crawler / impl / App.java
index 15e740a628df1b1a2d8d363755cc170235b493de..6246453abba66ce5e4cf570cca4aa6b995dc1933 100644 (file)
@@ -35,15 +35,29 @@ import org.wamblee.crawler.PageException;
 /**
  * Entry point for the crawler.
  */
-public class App {
+public final class App {
+    
+    /**
+     * Disabled constructor.
+     *
+     */
+    private App() { 
+        // Empty
+    }
 
     private static final Log LOG = LogFactory.getLog(App.class);
 
     private static final String LOG_FILE = "crawler.log";
 
-    public static void main(String[] args) throws Exception {
-        String configFileName = args[0];
-        String starturl = args[1];
+    /**
+     * Runs a test program. 
+     * @param aArgs Arguments. First argument is the crawler config file name and second argument is
+     *      the start url. 
+     * @throws Exception In case of problems. 
+     */
+    public static void main(String[] aArgs) throws Exception {
+        String configFileName = aArgs[0];
+        String starturl = aArgs[1];
 
         FileOutputStream fos = new FileOutputStream(new File(LOG_FILE));
         PrintStream os = new PrintStream(fos);