Package org.apache.aries.subsystem.core.archive

Examples of org.apache.aries.subsystem.core.archive.PreferredProviderHeader


    result.trimToSize();
    return result;
  }
 
  private void initialize() {
    PreferredProviderHeader header = resource.getSubsystemManifest().getPreferredProviderHeader();
    if (header == null)
      return;
    Collection<PreferredProviderRequirement> requirements = header.toRequirements(resource);
    for (PreferredProviderRequirement requirement : requirements)
      if (!addSystemRepositoryProviders(requirement))
        if (!addLocalRepositoryProviders(requirement))
          addRepositoryServiceProviders(requirement);
  }
View Full Code Here


    // least one preferred provider exists, filter out all other candidates
    // that are not also preferred providers.
    Collection<BundleCapability> preferredProviders = new ArrayList<BundleCapability>(candidates.size());
    for (BundleCapability candidate : candidates)
      for (BasicSubsystem subsystem : requirers) {
        PreferredProviderHeader header = subsystem.getSubsystemManifest().getPreferredProviderHeader();
        if (header != null && (header.contains(candidate.getResource()) || isResourceConstituentOfPreferredSubsystem(candidate.getResource(), subsystem)))
          preferredProviders.add(candidate);
      }
    if (!preferredProviders.isEmpty())
      candidates.retainAll(preferredProviders);
  }
View Full Code Here

TOP

Related Classes of org.apache.aries.subsystem.core.archive.PreferredProviderHeader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.