Osgi: osgi. bundles and osgi. Bundles. defaultstartlevel

Source: Internet
Author: User
The red content comes from personal understanding, and the rest comes from eclipse helps.
English:
Osgi. Bundles
The comma-separated list of bundles which are automatically installed and optionally started once the system is up and running. Each entry is of the form:

<URL | simple bundle location> [@ [<start-level>] [": Start"]

If the start-level (> 0 integer) is omitted then the framework will use the default start level for the bundle. if the "Start" tag is added then the bundle will be marked as started after being installed. simple bundle locations
Are interepreted as relative to the framework's parent directory. the start-level indicates the osgi start level at which the bundle shoshould run. if this value is not set, the system computes an appropriate default.


Osgi. Bundles. Defaultstartlevel
This is the startlevel that all bundles will be set to if installed by ECLIPSE update. bundles which are specified onOsgi. Bundles List
Can specify a participant startlevel. If they do not specify a startlevel then they default to the valueOsgi. Bundles. Defaultstartlevel. The default valueOsgi. Bundles. Defaultstartlevel
Is 4.
Chinese:
Osgi. Bundles
A list of bundled software that are separated by commas (,). They are automatically installed and can be started after the system starts and runs. The format of each entry is:

<URL | simple bundle software location> [@ [<startup level>] [": Start"]

If the startup level is omitted (an integer greater than zero), the framework uses the default startup level for the bundled software. If the start flag is added, the bundled software is marked as started after installation. The location of the simple bundling software is explained relative to the parent directory of the framework. The startup level indicates the osgi startup level at which the bundled software should run. If this value is not set, the system calculates the appropriate default value.

Osgi. Bundles. defaultstartlevel
This is the startup level set for all bundled software when "Eclipse Update" is installed. The bundled software specified in the osgi. bundles list can specify a specific startup level. If they do not specify the startup level, the value of osgi. Bundles. defaultstartlevel is used as the default value. The default value of osgi. Bundles. defaultstartlevel is 4.


My personal understanding:The plug-ins configured in the osgi. bundles node in config. ini are automatically started after the framework is started, regardless of whether the startup level and "start" labels are added.When the startup level is not set (reference \: file \: plugins/bundle2_1.0.0.201211051608.jar @ start), osgi is used. bundles. defastartstartlevel. If the Start mark is added, the software bundle is marked as started after installation. We can add the plug-ins that need to be started after the framework is started in the osgi. bundles of config. ini in our own RCP product, and customize their startup sequence.
Eg:
Osgi. bundles = reference \: file \: plugins/bundle1.0.1.0.0.201211051608.jar @ 4 \: Start ,\
Reference \: file \: plugins/bundle2_1.0.0.201211051608.jar @ start ,\
Reference \: file \: plugins/bundle3_1.0.0.201211051608.jar @ 4 \: Start ,\
Reference \: file \: plugins/bundle4_1.0.0.201211051608.jar @ 5 \: Start ,\
Reference \: file \: plugins/bundle5_1.0.0.201211051608.jar @ 6 \: Start
Osgi. Bundles. defaultstartlevel = 3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.