net.officefloor.eclipse.bootstrap
Class Bootstrap

java.lang.Object
  extended by net.officefloor.eclipse.bootstrap.Bootstrap
All Implemented Interfaces:
Runnable

public class Bootstrap
extends Object
implements Runnable

Boot straps Bootable implementations.

Author:
Daniel Sagenschneider

Constructor Summary
Bootstrap(Object bootable, Method bootMethod, Map<String,String> arguments)
          Initiate.
 
Method Summary
static void bootstrap(String bootableClassName, Map<String,String> arguments, ClassLoader classLoader)
          Bootstraps the Bootable.
 void run()
           
 void waitToComplete()
          Wait to be complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap(Object bootable,
                 Method bootMethod,
                 Map<String,String> arguments)
Initiate.

Parameters:
bootable - Bootable instance.
bootMethod - Method to boot the Bootable implementation.
arguments - Arguments for the Bootable.
Method Detail

bootstrap

public static void bootstrap(String bootableClassName,
                             Map<String,String> arguments,
                             ClassLoader classLoader)
                      throws Throwable
Bootstraps the Bootable.

Parameters:
bootableClassName - Class name of the Bootable implementation.
arguments - Arguments for the Bootable.
classLoader - ClassLoader to boot strap the Bootable implementation.
Throws:
Throwable - If fails to boot strap the Bootable.

waitToComplete

public void waitToComplete()
                    throws Throwable
Wait to be complete.

Throws:
Throwable - If boot strap fails.

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2005-2013. All Rights Reserved.