org.eclipse.osgi.service.resolver.State.resolveBundle()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.eclipse.osgi.service.resolver.State.resolveBundle()方法的一些代码示例,展示了State.resolveBundle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.resolveBundle()方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称:State
方法名:resolveBundle

State.resolveBundle介绍

[英]Sets whether or not the given bundle is selected in this state.

This method is intended to be used by resolvers in the process of determining which constraints are satisfied by which components.
[中]设置是否在此状态下选择给定捆绑包。
此方法旨在由解析器在确定哪些组件满足哪些约束的过程中使用。

代码示例

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);
stateResolveBundle(bundle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);
stateResolveBundle(bundle);

代码示例来源:origin: org.eclipse/org.eclipse.osgi

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);
stateResolveBundle(bundle);

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

private void resolveOptionalConstraints(ResolverBundle bundle) {
  BundleConstraint[] requires = bundle.getRequires();
  List<ResolverBundle> cycle = new ArrayList<ResolverBundle>();
  boolean resolvedOptional = false;
  for (int i = 0; i < requires.length; i++)
    if (requires[i].isOptional() && requires[i].getSelectedSupplier() == null) {
      cycle.clear();
      resolveRequire(requires[i], cycle);
      if (requires[i].getSelectedSupplier() != null)
        resolvedOptional = true;
    }
  ResolverImport[] imports = bundle.getImportPackages();
  for (int i = 0; i < imports.length; i++)
    if (imports[i].isOptional() && imports[i].getSelectedSupplier() == null) {
      cycle.clear();
      resolveImport(imports[i], cycle);
      if (imports[i].getSelectedSupplier() != null)
        resolvedOptional = true;
    }
  if (resolvedOptional) {
    state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);
    stateResolveConstraints(bundle);
    stateResolveBundle(bundle);
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

if (newSelectedExports == null)
            newSelectedExports = hostBundles[i].getSelectedExports();
          state.resolveBundle(hostBundles[i], true, null, newSelectedExports, hostBundles[i].getSubstitutedExports(), newSelectedCapabilities, hostBundles[i].getResolvedRequires(), hostBundles[i].getResolvedImports(), hostBundles[i].getResolvedGenericRequires(), ((BundleDescriptionImpl) hostBundles[i]).getWires());
state.resolveBundle(rb.getBundleDescription(), rb.isResolved(), hostBundles, selectedExportsArray, substitutedExportsArray, selectedCapabilitiesArray, bundlesWiredToArray, exportsWiredToArray, capabilitiesWiredToArray, stateWires);

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

if (newSelectedExports == null)
            newSelectedExports = hostBundles[i].getSelectedExports();
          state.resolveBundle(hostBundles[i], true, null, newSelectedExports, hostBundles[i].getSubstitutedExports(), newSelectedCapabilities, hostBundles[i].getResolvedRequires(), hostBundles[i].getResolvedImports(), hostBundles[i].getResolvedGenericRequires(), ((BundleDescriptionImpl) hostBundles[i]).getWires());
state.resolveBundle(rb.getBundleDescription(), rb.isResolved(), hostBundles, selectedExportsArray, substitutedExportsArray, selectedCapabilitiesArray, bundlesWiredToArray, exportsWiredToArray, capabilitiesWiredToArray, stateWires);

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

if (newSelectedExports == null)
            newSelectedExports = hostBundles[i].getSelectedExports();
          state.resolveBundle(hostBundles[i], true, null, newSelectedExports, hostBundles[i].getSubstitutedExports(), newSelectedCapabilities, hostBundles[i].getResolvedRequires(), hostBundles[i].getResolvedImports(), hostBundles[i].getResolvedGenericRequires(), ((BundleDescriptionImpl) hostBundles[i]).getWires());
state.resolveBundle(rb.getBundleDescription(), rb.isResolved(), hostBundles, selectedExportsArray, substitutedExportsArray, selectedCapabilitiesArray, bundlesWiredToArray, exportsWiredToArray, capabilitiesWiredToArray, stateWires);

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

if (newSelectedExports == null)
            newSelectedExports = hostBundles[i].getSelectedExports();
          state.resolveBundle(hostBundles[i], true, null, newSelectedExports, hostBundles[i].getSubstitutedExports(), newSelectedCapabilities, hostBundles[i].getResolvedRequires(), hostBundles[i].getResolvedImports(), hostBundles[i].getResolvedGenericRequires(), ((BundleDescriptionImpl) hostBundles[i]).getWires());
state.resolveBundle(rb.getBundleDescription(), rb.isResolved(), hostBundles, selectedExportsArray, substitutedExportsArray, selectedCapabilitiesArray, bundlesWiredToArray, exportsWiredToArray, capabilitiesWiredToArray, stateWires);

代码示例来源:origin: org.eclipse/org.eclipse.osgi

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

state.resolveBundle(bundle.getBundleDescription(), false, null, null, null, null, null, null, null, null);

相关文章