DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
The start() method is used to start the framework instance. If the init() method was not invoked prior to calling start(), then it is implicitly invoked from by start(). The two methods result in two different framework state transitions:
...
- The launcher only supports a single, optional command-line argument, which is the path to the bundle cache, so check for this and issue a usage message it there are more than one arguments.
- Load any system properties specified in the
system.propertiesfile; this file is typically located in theconf/directory of the Felix installation directory, but it can be specified directly using thefelix.system.propertiessystem property. This file is not needed to launch Felix and is provided merely for convenience when system properties must be specified. The file is a standard Java properties file, but it also supports property substitution using${<property-name} syntax. Property substitution can be nested; only system properties will be used for substitution. - Load any configuration properties specified in the
config.propertiesfile; this file is typically located in theconf/directory of the Felix installation directory, but it can be specified directly using thefelix.config.propertiessystem property. This file is used to configure the Felix instance created by the launcher. The file is a standard Java properties file, but it also supports property substitution using "${<property-name}" syntax. Property substitution can be nested; configuration and system properties will be used for substitution with configuration properties having precedence. - For convenience, any configuration properties that are set as system properties will be are copied into the set of configuration properties to . This provide an easy way to add to or override configuration properties specified in the
config.propertiesfile, since the Felix instance will never look at system properties for configuration. - If there is a single command-line argument, then use that to set the value of
org.osgi.framework.storage; relative paths are relative to the current directory unless thefelix.cache.rootdirproperty is set. - Create a list to hold custom framework activators and add an instance of
org.apache.felix.main.AutoActivator, which will processfelix.auto.installandfelix.auto.startconfiguration properties during framework startup to automatically install and/or start bundles; see the usage document for more information configuration properties. - Create the Felix instance passing in the configuration properties, then call
start(). - Invoke
waitForStop()to wait for the framework to stop to force the VM to exit; this is necessary because the framework never callsSystem.exit()and some libraries (e.g., Swing) create threads that will not allow the VM to exit.
...