Package com.bc.ceres.launcher
Class Launcher
- java.lang.Object
- 
- com.bc.ceres.launcher.Launcher
 
- 
 public final class Launcher extends Object A launcher for applications based on the Ceres runtime.- See Also:
- RuntimeConfig,- ClasspathFactory
 
- 
- 
Constructor SummaryConstructors Constructor Description Launcher(RuntimeConfig runtimeConfig, ClasspathFactory classpathFactory)Constructs a new launcher.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadercreateClassLoader()static LaunchercreateDefaultLauncher()Creates a default launcher.ClasspathFactorygetClasspathFactory()RuntimeConfiggetRuntimeConfig()voidlaunch(String[] args)static voidmain(String[] args)Launches the application with a defaultRuntimeConfigand aClasspathFactorybased on the${ceres.context}.mainClassproperty.
 
- 
- 
- 
Constructor Detail- 
Launcherpublic Launcher(RuntimeConfig runtimeConfig, ClasspathFactory classpathFactory) Constructs a new launcher.- Parameters:
- runtimeConfig- the runtime configuration
- classpathFactory- the classpath factory
 
 
- 
 - 
Method Detail- 
mainpublic static void main(String[] args) 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
 
 - 
createDefaultLauncherpublic static Launcher createDefaultLauncher() throws RuntimeConfigException Creates a default launcher.- Returns:
- a default launcher.
- Throws:
- RuntimeConfigException- if the default configuration is invalid
 
 - 
getRuntimeConfigpublic RuntimeConfig getRuntimeConfig() 
 - 
getClasspathFactorypublic ClasspathFactory getClasspathFactory() 
 - 
createClassLoaderpublic ClassLoader createClassLoader() throws RuntimeConfigException - Throws:
- RuntimeConfigException
 
 
- 
 
-