org.codehaus.classworlds.uberjar.boot

Class Bootstrapper


public class Bootstrapper
extends java.lang.Object

Bootstrapping entry-point.

The Bootstrapper is to be used for standalone jars which carry all dependency jars within them. The layout for the dependency jar should be similar to:

    myjar/
          classworlds.conf
          org/
              codehaus/
                     classworlds/
                                 boot/
                                 protocol/
          lib/
              myapp.jar
              depOne.jar
              depTwo.jar
  
Version:
$Id: Bootstrapper.java 78 2004-07-01 13:59:13Z jvanzyl $
Authors:
Jason van Zyl
bob mcwhirter

Field Summary

static String
LAUNCHER_CLASS_NAME
Main classworlds entry class.

Constructor Summary

Bootstrapper(String[] args)
Construct.

Method Summary

void
bootstrap()
Perform bootstrap.
protected ClassLoader
getInitialClassLoader()
Retrieve the initial bootstrapping ClassLoader.
static void
main(String[] args)
Main entry-point.

Field Details

LAUNCHER_CLASS_NAME

public static final String LAUNCHER_CLASS_NAME
Main classworlds entry class.

Constructor Details

Bootstrapper

public Bootstrapper(String[] args)
            throws Exception
Construct.
Parameters:
args - Command-line arguments.

Method Details

bootstrap

public void bootstrap()
            throws Exception
Perform bootstrap.

getInitialClassLoader

protected ClassLoader getInitialClassLoader()
Retrieve the initial bootstrapping ClassLoader.
Returns:
The classloader.

main

public static void main(String[] args)
            throws Exception
Main entry-point.
Parameters:
args - Command-line arguments.