class FrameworkStartLevelImpl.BundleStartLevelImpl extends java.lang.Object implements BundleStartLevel
| Modifier and Type | Field and Description |
|---|---|
private BundleImpl |
m_bundle |
| Modifier | Constructor and Description |
|---|---|
private |
BundleStartLevelImpl(BundleImpl bundle) |
| Modifier and Type | Method and Description |
|---|---|
Bundle |
getBundle()
Returns the
Bundle object associated with this
BundleReference. |
int |
getStartLevel()
Return the assigned start level value for the bundle.
|
boolean |
isActivationPolicyUsed()
Returns whether the bundle's autostart setting indicates that the
activation policy declared in the bundle manifest must be used.
|
boolean |
isPersistentlyStarted()
Returns whether the bundle's autostart setting indicates it must be
started.
|
void |
setStartLevel(int startlevel)
Assign a start level value to the bundle.
|
private BundleImpl m_bundle
private BundleStartLevelImpl(BundleImpl bundle)
public Bundle getBundle()
BundleReferenceBundle object associated with this
BundleReference.getBundle in interface BundleReferenceBundle object associated with this
BundleReference.public int getStartLevel()
BundleStartLevelgetStartLevel in interface BundleStartLevelBundleStartLevel.setStartLevel(int)public void setStartLevel(int startlevel)
BundleStartLevelThe 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 Bundle.start(int) method using the
Bundle.START_TRANSIENT option. The
Bundle.START_ACTIVATION_POLICY option must also be used if
BundleStartLevel.isActivationPolicyUsed() returns true. The actual
starting of the bundle must occur asynchronously.
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 Bundle.stop(int) method using the
Bundle.STOP_TRANSIENT option. The actual stopping of the bundle
must occur asynchronously.
setStartLevel in interface BundleStartLevelstartlevel - The new start level for the bundle.public boolean isPersistentlyStarted()
BundleStartLevelThe autostart setting of a bundle indicates whether the bundle is to be started when its start level is reached.
isPersistentlyStarted in interface BundleStartLeveltrue if the autostart setting of the bundle indicates it
is to be started. false otherwise.Bundle.START_TRANSIENTpublic boolean isActivationPolicyUsed()
BundleStartLevelThe autostart setting of a bundle indicates whether the bundle's declared activation policy is to be used when the bundle is started.
isActivationPolicyUsed in interface BundleStartLeveltrue 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.Bundle.START_ACTIVATION_POLICY