Class DisabledInfo
java.lang.Object
org.eclipse.osgi.service.resolver.DisabledInfo
A disabled info represents a policy decision to disable a bundle which exists
in a
State
. Bundles may be disabled by adding disabled info with the
State.addDisabledInfo(DisabledInfo)
method and enabled by removing
disabled info with the State.removeDisabledInfo(DisabledInfo)
method.
A bundle is not considered to be enabled unless there are no disabled info
objects for the bundle.
While resolving the bundle if the Resolver
encounters a
BundleDescription
which has disabled info returned by
State.getDisabledInfos(BundleDescription)
then the bundle must not be
allowed to resolve and a ResolverError of type
ResolverError.DISABLED_BUNDLE
must be added to the state.
- Since:
- 3.4
- See Also:
-
Constructor Summary
ConstructorDescriptionDisabledInfo
(String policyName, String message, BundleDescription bundle) DisabledInfo constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the bundle which is disabledReturns the message describing the reason the bundle is disabled.Returns the name of the policy which disabled the bundle.int
hashCode()
-
Constructor Details
-
DisabledInfo
DisabledInfo constructor.- Parameters:
policyName
- the name of the policymessage
- the message, may benull
bundle
- the bundle
-
-
Method Details
-
getPolicyName
Returns the name of the policy which disabled the bundle.- Returns:
- the name of the policy
-
getMessage
Returns the message describing the reason the bundle is disabled.- Returns:
- the message
-
getBundle
Returns the bundle which is disabled- Returns:
- the bundle which is disabled
-
equals
-
hashCode
public int hashCode()
-