Previous Topic

Next Topic

Book Contents

Book Index

Start Level service

The StartLevel service can be used by admin bundles to get and/or change the active start level of the framework as well as modify the start levels of bundles.The StartLevel service is accessed through the org.osgi.service.startlevel.StartLevel interface. In brief, the framework starts only those bundles whose start levels are less or equal to the framework active start level. In this way, the framework enables the definition of specific startup sequences of bundles. This option brings many benefits, such as the introduction of bundle priorities, preliminary handling service dependencies, etc.

There are two types of bundle start levels – initial, assigned to the bundle when it is first installed, and active start level, assigned to the bundle after it is installed for the first time.

More information about the concept of start levels and about the usage of the StartLevel service is available in OSGi Start Level Specification.

Registering bundle

This service is registered by System bundle.