Package com.bc.ceres.launcher
Class Launcher
java.lang.Object
com.bc.ceres.launcher.Launcher
A launcher for applications based on the Ceres runtime.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionLauncher(RuntimeConfig runtimeConfig, ClasspathFactory classpathFactory) Constructs a new launcher. - 
Method Summary
Modifier and TypeMethodDescriptionstatic LauncherCreates a default launcher.voidstatic voidLaunches the application with a defaultRuntimeConfigand aClasspathFactorybased on the${ceres.context}.mainClassproperty. 
- 
Constructor Details
- 
Launcher
Constructs a new launcher.- Parameters:
 runtimeConfig- the runtime configurationclasspathFactory- the classpath factory
 
 - 
 - 
Method Details
- 
main
Launches the application with a defaultRuntimeConfigand aClasspathFactorybased on the${ceres.context}.mainClassproperty. If the main class is"com.bc.ceres.core.runtime.RuntimeLauncher", then a minimal classpath which at least includes theceres-corelibrary is used. Otherwise all directories, JARs and ZIPs found in the home directory will be added to the classpath.- Parameters:
 args- the command-line arguments
 - 
createDefaultLauncher
Creates a default launcher.- Returns:
 - a default launcher.
 - Throws:
 RuntimeConfigException- if the default configuration is invalid
 - 
getRuntimeConfig
 - 
getClasspathFactory
 - 
createClassLoader
- Throws:
 RuntimeConfigException
 - 
launch
- Throws:
 Exception
 
 -