org.osgi.resource.Wiring.getResourceRequirements()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(115)

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

Wiring.getResourceRequirements介绍

[英]Returns the requirements of this wiring.

Only requirements considered by the resolver are returned. For example, requirements with Namespace#REQUIREMENT_EFFECTIVE_DIRECTIVE directive not equal to Namespace#EFFECTIVE_RESOLVE are not returned.

A wiring for a non-fragment resource has a subset of the declared requirements from the resource and all attached fragment resources. Not all declared requirements may be present since some may be discarded. For example, if a package is declared to be both exported and imported, only one is selected and the other is discarded.
[中]返回此接线的要求。
只返回解析程序考虑的需求。例如,命名空间#REQUIREMENT_EFFECTIVE_DIRECTIVE指令不等于命名空间#EFFECTIVE_RESOLVE的需求不会返回。
非片段资源的连接具有来自该资源和所有附加片段资源的声明需求的子集。并非所有声明的要求都存在,因为有些可能会被丢弃。例如,如果一个包同时声明为导出和导入,则只选择一个,而放弃另一个。

代码示例

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

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

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

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

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

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

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

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

代码示例来源:origin: biz.aQute.bnd/biz.aQute.resolve

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

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

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

代码示例来源:origin: apache/felix

+ " (" + ((wiring != null) ? "RESOLVED)" : "UNRESOLVED)"));
List<Requirement> reqs = (wiring != null)
  ? wiring.getResourceRequirements(null)
  : resource.getRequirements(null);
for (Requirement req : reqs)
  ? Util.getDynamicRequirements(wiring.getResourceRequirements(null))
  : Util.getDynamicRequirements(resource.getRequirements(null));
for (Requirement req : reqs)

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

: Util.getDynamicRequirements(wiring.getResourceRequirements(null)))

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

: Util.getDynamicRequirements(wiring.getResourceRequirements(null)))

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

for (Requirement req : wiring.getResourceRequirements(null))

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

for (Requirement req : wiring.getResourceRequirements(null))

相关文章