org.eclipse.jetty.start
Class Main

java.lang.Object
  extended by org.eclipse.jetty.start.Main

public class Main
extends Object

Main start class. This class is intended to be the main class listed in the MANIFEST.MF of the start.jar archive. It allows an application to be started with the command "java -jar start.jar".

The behaviour of Main is controlled by the parsing of the Config "org/eclipse/start/start.config" file obtained as a resource or file.


Method Summary
static void close(Closeable c)
           
 List<String> expandCommandLine(String[] args)
           
 void invokeMain(ClassLoader classloader, String classname, List<String> args)
           
static void main(String[] args)
           
 List<String> processCommandLine(List<String> arguments)
           
 void start(List<String> xmls)
           
 void stop(int port, String key)
          Stop a running jetty instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)

expandCommandLine

public List<String> expandCommandLine(String[] args)
                               throws Exception
Throws:
Exception

processCommandLine

public List<String> processCommandLine(List<String> arguments)
                                throws Exception
Throws:
Exception

invokeMain

public void invokeMain(ClassLoader classloader,
                       String classname,
                       List<String> args)
                throws IllegalAccessException,
                       InvocationTargetException,
                       NoSuchMethodException,
                       ClassNotFoundException
Throws:
IllegalAccessException
InvocationTargetException
NoSuchMethodException
ClassNotFoundException

close

public static void close(Closeable c)

start

public void start(List<String> xmls)
           throws FileNotFoundException,
                  IOException,
                  InterruptedException
Throws:
FileNotFoundException
IOException
InterruptedException

stop

public void stop(int port,
                 String key)
Stop a running jetty instance.



Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.