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

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


public class SubsystemManifestValidator {
  public static void validate(BasicSubsystem subsystem, SubsystemManifest manifest) {
    validatePreferredProviderHeader(manifest.getPreferredProviderHeader());
    if (subsystem.isComposite()) {
      SubsystemContentHeader header = manifest.getSubsystemContentHeader();
      if (header == null)
        return;
      for (SubsystemContentHeader.Clause clause : header.getClauses()) {
        if (!clause.getVersionRange().isExact())
          throw new SubsystemException("Composite subsystem using version range for content: " + clause);
      }
    }
    else if (subsystem.isFeature()) {
View Full Code Here

TOP

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

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.