Class DisabledInfo
- java.lang.Object
-
- org.eclipse.osgi.service.resolver.DisabledInfo
-
public final class DisabledInfo extends Object
A disabled info represents a policy decision to disable a bundle which exists in aState
. Bundles may be disabled by adding disabled info with theState.addDisabledInfo(DisabledInfo)
method and enabled by removing disabled info with theState.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 aBundleDescription
which has disabled info returned byState.getDisabledInfos(BundleDescription)
then the bundle must not be allowed to resolve and a ResolverError of typeResolverError.DISABLED_BUNDLE
must be added to the state.- Since:
- 3.4
- See Also:
State
-
-
Constructor Summary
Constructors Constructor Description DisabledInfo(String policyName, String message, BundleDescription bundle)
DisabledInfo constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BundleDescription
getBundle()
Returns the bundle which is disabledString
getMessage()
Returns the message describing the reason the bundle is disabled.String
getPolicyName()
Returns the name of the policy which disabled the bundle.int
hashCode()
-
-
-
Constructor Detail
-
DisabledInfo
public DisabledInfo(String policyName, String message, BundleDescription bundle)
DisabledInfo constructor.- Parameters:
policyName
- the name of the policymessage
- the message, may benull
bundle
- the bundle
-
-
Method Detail
-
getPolicyName
public String getPolicyName()
Returns the name of the policy which disabled the bundle.- Returns:
- the name of the policy
-
getMessage
public String getMessage()
Returns the message describing the reason the bundle is disabled.- Returns:
- the message
-
getBundle
public BundleDescription getBundle()
Returns the bundle which is disabled- Returns:
- the bundle which is disabled
-
-