public final class DisabledInfo extends Object
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.
State
Constructor and Description |
---|
DisabledInfo(String policyName,
String message,
BundleDescription bundle)
DisabledInfo constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
BundleDescription |
getBundle()
Returns the bundle which is disabled
|
String |
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() |
public DisabledInfo(String policyName, String message, BundleDescription bundle)
policyName
- the name of the policymessage
- the message, may be null
bundle
- the bundlepublic String getPolicyName()
public String getMessage()
public BundleDescription getBundle()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.