接口 BundleRevisions
-
- 所有超级接口:
BundleReference
- 所有已知实现类:
Felix
@ProviderType public interface BundleRevisions extends BundleReference
Thebundle revisionsof a bundle. When a bundle is installed and each time a bundle is updated, a new bundle revision of the bundle is created. For a bundle that has not been uninstalled, the most recent bundle revision is defined to be the current bundle revision. A bundle in the UNINSTALLED state does not have a current revision. An in use bundle revision is associated with anin useBundleWiring. The current bundle revision, if there is one, and all in use bundle revisions are returned.The bundle revisions for a bundle can be obtained by calling
bundle.adapt(BundleRevisions.class).getRevisions()on the bundle.- 作者:
- $Id: 83e7bf03af2150a54af13a319325856e532cefde $
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.util.List<BundleRevision>getRevisions()Return the bundle revisions for thereferencedbundle.-
从接口继承的方法 org.osgi.framework.BundleReference
getBundle
-
-
-
-
方法详细资料
-
getRevisions
java.util.List<BundleRevision> getRevisions()
Return the bundle revisions for thereferencedbundle.The result is a list containing the current bundle revision, if there is one, and all in use bundle revisions. The list may also contain intermediate bundle revisions which are not in use.
The list is ordered in reverse chronological order such that the first item is the most recent bundle revision and last item is the oldest bundle revision.
Generally the list will have at least one bundle revision for the bundle: the current bundle revision. However, for an uninstalled bundle with no in use bundle revisions, the list may be empty.
- 返回:
- A list containing a snapshot of the
BundleRevisions for the referenced bundle.
-
-