public final class DisabledInfo
extends java.lang.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(java.lang.String policyName,
java.lang.String message,
BundleDescription bundle)
DisabledInfo constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
BundleDescription |
getBundle()
Returns the bundle which is disabled
|
java.lang.String |
getMessage()
Returns the message describing the reason the bundle is disabled.
|
java.lang.String |
getPolicyName()
Returns the name of the policy which disabled the bundle.
|
int |
hashCode() |
public DisabledInfo(java.lang.String policyName,
java.lang.String message,
BundleDescription bundle)
policyName - the name of the policymessage - the message, may be nullbundle - the bundlepublic java.lang.String getPolicyName()
public java.lang.String getMessage()
public BundleDescription getBundle()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.