|
Eclipse Platform Release 3.6 |
|||||||||
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(String policyName,
String message,
BundleDescription bundle)
DisabledInfo constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisabledInfo(String policyName, String message, BundleDescription bundle)
policyName
- the name of the policymessage
- the message, may be null
bundle
- the bundleMethod Detail |
---|
public String getPolicyName()
public String getMessage()
public BundleDescription getBundle()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.