org.apache.geronimo.main
Class FrameworkLauncher
java.lang.Object
org.apache.geronimo.main.FrameworkLauncher
- Direct Known Subclasses:
- Bootstrapper
public class FrameworkLauncher
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_PROPERTIES_FILE_NAME
public static final String SYSTEM_PROPERTIES_FILE_NAME
- The default name used for the system properties file.
- See Also:
- Constant Field Values
CONFIG_PROPERTIES_FILE_NAME
public static final String CONFIG_PROPERTIES_FILE_NAME
- The default name used for the configuration properties file.
- See Also:
- Constant Field Values
STARTUP_PROPERTIES_FILE_NAME
public static final String STARTUP_PROPERTIES_FILE_NAME
- The default name used for the startup properties file.
- See Also:
- Constant Field Values
FrameworkLauncher
public FrameworkLauncher()
setLog4jConfigFile
public void setLog4jConfigFile(String log4jFile)
setConfigFile
public void setConfigFile(String configFile)
setAdditionalConfigFile
public void setAdditionalConfigFile(String additionalConfigFile)
setStartupFile
public void setStartupFile(String startupFile)
setUniqueInstance
public void setUniqueInstance(boolean uniqueInstance)
setCleanStorage
public void setCleanStorage(boolean cleanStorage)
launch
public void launch()
throws Exception
- Throws:
Exception
destroy
public void destroy(boolean await)
getFramework
public org.osgi.framework.launch.Framework getFramework()
loadSystemProperties
protected static void loadSystemProperties(File baseDir)
throws IOException
Loads the properties in the system property file associated with the
framework installation into System.setProperty(). These properties
are not directly used by the framework in anyway. By default, the system
property file is located in the conf/ directory of the Felix
installation directory and is called "system.properties". The
installation directory of Felix is assumed to be the parent directory of
the felix.jar file as found on the system class path property.
The precise file from which to load system properties can be set by
initializing the "felix.system.properties" system property to an
arbitrary URL.
- Throws:
IOException
copySystemProperties
protected static void copySystemProperties(Properties configProps)
loadStartupProperties
protected List<org.apache.geronimo.main.FrameworkLauncher.BundleInfo> loadStartupProperties(Properties startupProps,
List<File> bundleDirs)
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.