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

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

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

State.removeResolverErrors介绍

[英]Removes all ResolverErrors for the specified bundle.

This method is intended to be used by resolvers in the process of resolving.
[中]删除指定捆绑包的所有ResolverErrors。
此方法旨在供解析器在解析过程中使用。

代码示例

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

private void resolveBundles(ResolverBundle[] bundles, Dictionary<Object, Object>[] platformProperties, Collection<ResolverBundle> hookDisabled) {
  // First check that all the meta-data is valid for each unresolved bundle
  // This will reset the resolvable flag for each bundle
  for (ResolverBundle bundle : bundles) {
    state.removeResolverErrors(bundle.getBundleDescription());
    // if in development mode then make all bundles resolvable
    // we still want to call isResolvable here to populate any possible ResolverErrors for the bundle
    bundle.setResolvable(isResolvable(bundle, platformProperties, hookDisabled) || developmentMode);
  }
  selectSingletons(bundles);
  resolveBundles0(bundles, platformProperties);
  if (DEBUG_WIRING)
    printWirings();
}

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

private void resolveBundles(ResolverBundle[] bundles, Dictionary<Object, Object>[] platformProperties, Collection<ResolverBundle> hookDisabled) {
  // First check that all the meta-data is valid for each unresolved bundle
  // This will reset the resolvable flag for each bundle
  for (ResolverBundle bundle : bundles) {
    state.removeResolverErrors(bundle.getBundleDescription());
    // if in development mode then make all bundles resolvable
    // we still want to call isResolvable here to populate any possible ResolverErrors for the bundle
    bundle.setResolvable(isResolvable(bundle, platformProperties, hookDisabled) || developmentMode);
  }
  selectSingletons(bundles);
  resolveBundles0(bundles, platformProperties);
  if (DEBUG_WIRING)
    printWirings();
}

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

private void resolveBundles(ResolverBundle[] bundles, Dictionary<Object, Object>[] platformProperties, Collection<ResolverBundle> hookDisabled) {
  // First check that all the meta-data is valid for each unresolved bundle
  // This will reset the resolvable flag for each bundle
  for (ResolverBundle bundle : bundles) {
    state.removeResolverErrors(bundle.getBundleDescription());
    // if in development mode then make all bundles resolvable
    // we still want to call isResolvable here to populate any possible ResolverErrors for the bundle
    bundle.setResolvable(isResolvable(bundle, platformProperties, hookDisabled) || developmentMode);
  }
  selectSingletons(bundles);
  resolveBundles0(bundles, platformProperties);
  if (DEBUG_WIRING)
    printWirings();
}

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

private void resolveBundles(ResolverBundle[] bundles, Dictionary<Object, Object>[] platformProperties, Collection<ResolverBundle> hookDisabled) {
  // First check that all the meta-data is valid for each unresolved bundle
  // This will reset the resolvable flag for each bundle
  for (ResolverBundle bundle : bundles) {
    state.removeResolverErrors(bundle.getBundleDescription());
    // if in development mode then make all bundles resolvable
    // we still want to call isResolvable here to populate any possible ResolverErrors for the bundle
    bundle.setResolvable(isResolvable(bundle, platformProperties, hookDisabled) || developmentMode);
  }
  selectSingletons(bundles);
  resolveBundles0(bundles, platformProperties);
  if (DEBUG_WIRING)
    printWirings();
  // set the resolved status of the bundles in the State
  stateResolveBundles(bundles);
}

相关文章

微信公众号

最新文章

更多