bundle.adapt(BundleStartLevel.class) on the bundle.
The bundle associated with this BundleStartLevel object can be obtained by
calling BundleReference#getBundle().
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The start level value of the bundle.Return the assigned start level value for the bundle. |
| public boolean | Returns: true if the bundle's autostart setting indicates the
activation policy declared in the manifest must be used.
false if the bundle must be eagerly activated.Returns whether the bundle's autostart setting indicates that the activation policy declared in the bundle manifest must be used. |
| public boolean | Returns: true if the autostart setting of the bundle indicates it
is to be started. false otherwise.Returns whether the bundle's autostart setting indicates it must be started. |
| public void | setStartLevel(int
The new start level for the bundle. startlevel)Assign a start level value to the bundle. |
| getStartLevel | back to summary |
|---|---|
| public int getStartLevel() Return the assigned start level value for the bundle.
| |
| isActivationPolicyUsed | back to summary |
|---|---|
| public boolean isActivationPolicyUsed() Returns whether the bundle's autostart setting indicates that the activation policy declared in the bundle manifest must be used. The autostart setting of a bundle indicates whether the bundle's declared activation policy is to be used when the bundle is started.
| |
| isPersistentlyStarted | back to summary |
|---|---|
| public boolean isPersistentlyStarted() Returns whether the bundle's autostart setting indicates it must be started. The autostart setting of a bundle indicates whether the bundle is to be started when its start level is reached.
| |
| setStartLevel | back to summary |
|---|---|
| public void setStartLevel(int startlevel) Assign a start level value to the bundle. The bundle will be assigned the specified start level. The start level value assigned to the bundle will be persistently recorded by the Framework.
If the new start level for the bundle is lower than or equal to the
active start level of the Framework and the bundle's autostart setting
indicates this bundle must be started, the Framework will start the
bundle as described in the
If the new start level for the bundle is higher than the active start
level of the Framework, the Framework will stop the bundle as described
in the
| |