Home Projects DA-Launcher Extending DA-Launcher
Extending DA-Launcher Print E-mail

Any piece of functionality provided by DA-Launcher is customizable. The code of DA-Launcher was written with flexibility in mind, so you will find that adding new configuration parameters, modifying the installation process of bundles, etc. can be done very simply without having the need to modify the source code of DA-Launcher itself.

You can extend DA-Launcher by following these steps:

  • Create a factory class that extends org.dynamicjava.osgi.da_launcher.LauncherFactory.
  • Archive the factory class in a JAR file and copy the resultant JAR file and any dependency JAR files to the “{da-launcher-home}/lib” directory if you run your application as a standalone application or to the “WEB-INF/lib” directory if you embedded DA-Launcher in a Web Application.
  • In “{da-launcher-home}/config/extensions.properties” file set the value of the “launcher-factory” property to the name of your factory class.

When you will run DA-Launcher, it will use your factory instead of the default one. Using the factory you can customize any part of DA-Launcher or add new features that meet your needs, but before customizing DA-Launcher it will be useful to get a little familiar with DA-Launcher's source code.

This file contains an example extension to DA-Launcher. The example contains the source code and an application that uses DA-Launcher with the extension. The source code can serve as a template for developing DA-Launcher extensions.