org.apache.felix.resolver.Util.isOptional()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(197)

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

Util.isOptional介绍

暂无

代码示例

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

  1. public boolean canRemoveCandidate(Requirement req)
  2. {
  3. List<Capability> candidates = m_candidateMap.get(req);
  4. return ((candidates != null) && (candidates.size() > 1 || Util.isOptional(req)));
  5. }

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

  1. public boolean canRemoveCandidate(Requirement req)
  2. {
  3. List<Capability> candidates = m_candidateMap.get(req);
  4. return ((candidates != null) && (candidates.size() > 1 || Util.isOptional(req)));
  5. }

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

  1. public boolean canRemoveCandidate(Requirement req)
  2. {
  3. List<Capability> candidates = m_candidateMap.get(req);
  4. return ((candidates != null) && (candidates.size() > 1 || Util.isOptional(req)));
  5. }

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

  1. private boolean isMandatory(ResolveContext rc, Requirement requirement) {
  2. // The requirement is optional
  3. if (Util.isOptional(requirement)) {
  4. return false;
  5. }
  6. // This is a fragment that is already resolved and there is no unresolved hosts to attach it to
  7. Resource resource = requirement.getResource();
  8. if (Util.isFragment(resource) && rc.getWirings().containsKey(resource)) {
  9. return false;
  10. }
  11. return true;
  12. }

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

  1. private boolean isMandatory(ResolveContext rc, Requirement requirement) {
  2. // The requirement is optional
  3. if (Util.isOptional(requirement)) {
  4. return false;
  5. }
  6. // This is a fragment that is already resolved and there is no unresolved hosts to attach it to
  7. Resource resource = requirement.getResource();
  8. if (Util.isFragment(resource) && rc.getWirings().containsKey(resource)) {
  9. return false;
  10. }
  11. return true;
  12. }

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

  1. if (!Util.isOptional(r))

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

  1. private static void permutate(
  2. Candidates allCandidates, Requirement req, List<Candidates> permutations)
  3. {
  4. if (!Util.isMultiple(req))
  5. {
  6. List<Capability> candidates = allCandidates.getCandidates(req);
  7. if ((candidates != null) && (candidates.size() > 1 || Util.isOptional(req)))
  8. {
  9. Candidates perm = allCandidates.copy();
  10. candidates = perm.getCandidates(req);
  11. candidates.remove(0);
  12. if (candidates.isEmpty())
  13. {
  14. perm.clearCandidates(req);
  15. }
  16. permutations.add(perm);
  17. }
  18. }
  19. }

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

代码示例来源:origin: forge/roaster

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. if (!Util.isOptional(r))

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

  1. return candidates.getRemainingCandidateCount() > 1 || Util.isOptional(req);

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

  1. return candidates.getRemainingCandidateCount() > 1 || Util.isOptional(req);

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

  1. return candidates.getRemainingCandidateCount() > 1 || Util.isOptional(req);

代码示例来源:origin: forge/roaster

  1. return candidates.getRemainingCandidateCount() > 1 || Util.isOptional(req);

相关文章