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

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

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

Wiring.getResourceCapabilities介绍

[英]Returns the capabilities provided by this wiring.

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

A capability may not be required by any wiring and thus there may be no #getProvidedResourceWires(String) for the capability.

A wiring for a non-fragment resource provides a subset of the declared capabilities from the resource and all attached fragment resources†. Not all declared capabilities may be provided 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.

A wiring for a fragment resource with a symbolic name must provide exactly one osgi.identity capability.

† The osgi.identity capability provided by attached fragment resource must not be included in the capabilities of the host wiring.
[中]返回此连线提供的功能。
只返回解析程序考虑的功能。例如,命名空间#CAPABILITY_EFFECTIVE_指令不等于命名空间#EFFECTIVE_RESOLVE的功能不会返回。
任何布线都可能不需要某个功能,因此该功能可能没有#getProvidedResourceWires(字符串)。
非片段资源的连接提供了该资源和所有附加片段资源†中声明的功能的子集。并非所有声明的功能都可以提供,因为有些功能可能会被丢弃。例如,如果一个包同时声明为导出和导入,则只选择一个,而放弃另一个。
带有符号名的片段资源的连接必须提供一个osgi。身份识别能力。
†osgi。连接的片段资源提供的标识功能不得包含在主机连接的功能中。

代码示例

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
Map<String, Capability> exports = new HashMap<String, Capability>(caps.size());

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
@SuppressWarnings("serial")

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
Map<String, Capability> exports = new HashMap<String, Capability>(caps.size());

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
@SuppressWarnings("serial")

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

? wiring.getResourceCapabilities(null)
  : cap.getResource().getCapabilities(null);
for (Capability sourceCap : caps)

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
OpenHashMap<String, Set<Capability>> pkgs = new OpenHashMap<String, Set<Capability>>(caps.size()) {

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
@SuppressWarnings("serial")

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
@SuppressWarnings("serial")

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
OpenHashMap<String, Set<Capability>> pkgs = new OpenHashMap<String, Set<Capability>>(caps.size()) {

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

? wiring.getResourceCapabilities(null)
  : cap.getResource().getCapabilities(null);
for (Capability sourceCap : caps)

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

? wiring.getResourceCapabilities(null)
    : resource.getCapabilities(null);
@SuppressWarnings("serial")

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

.getResourceCapabilities(null).contains(fragCand))

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

.getResourceCapabilities(null).contains(fragCand))

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

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

? wiring.getResourceCapabilities(null)
  : resource.getCapabilities(null);
for (Capability cap : caps)

相关文章