|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.service.resolver.DisabledInfo
public final class 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.
State
Constructor Summary | |
---|---|
DisabledInfo(java.lang.String policyName,
java.lang.String message,
BundleDescription bundle)
DisabledInfo constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisabledInfo(java.lang.String policyName, java.lang.String message, BundleDescription bundle)
policyName
- the name of the policymessage
- the message, may be null
bundle
- the bundleMethod Detail |
---|
public java.lang.String getPolicyName()
public java.lang.String getMessage()
public BundleDescription getBundle()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |