org.apache.geronimo.main
Class FrameworkLauncher

java.lang.Object
  extended by org.apache.geronimo.main.FrameworkLauncher
Direct Known Subclasses:
Bootstrapper

public class FrameworkLauncher
extends Object


Field Summary
static String CONFIG_PROPERTIES_FILE_NAME
          The default name used for the configuration properties file.
static String STARTUP_PROPERTIES_FILE_NAME
          The default name used for the startup properties file.
static String SYSTEM_PROPERTIES_FILE_NAME
          The default name used for the system properties file.
 
Constructor Summary
FrameworkLauncher()
           
 
Method Summary
protected static void copySystemProperties(Properties configProps)
           
 void destroy(boolean await)
           
 org.osgi.framework.launch.Framework getFramework()
           
 void launch()
           
protected  List<org.apache.geronimo.main.FrameworkLauncher.BundleInfo> loadStartupProperties(Properties startupProps, List<File> bundleDirs)
           
protected static void loadSystemProperties(File baseDir)
           Loads the properties in the system property file associated with the framework installation into System.setProperty().
 void setAdditionalConfigFile(String additionalConfigFile)
           
 void setCleanStorage(boolean cleanStorage)
           
 void setConfigFile(String configFile)
           
 void setLog4jConfigFile(String log4jFile)
           
 void setStartupFile(String startupFile)
           
 void setUniqueInstance(boolean uniqueInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FrameworkLauncher

public FrameworkLauncher()
Method Detail

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.