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

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


    addSubsystemContentHeader(builder, manifest);
    return builder.build();
  }
 
  private SubsystemSymbolicNameHeader computeSubsystemSymbolicNameHeader(SubsystemManifest manifest) {
    SubsystemSymbolicNameHeader header = manifest.getSubsystemSymbolicNameHeader();
    if (header != null)
      return header;
    String symbolicName = location.getSymbolicName();
    if (symbolicName == null)
      symbolicName = "org.apache.aries.subsystem." + id;
    return new SubsystemSymbolicNameHeader(symbolicName);
  }
View Full Code Here


    String symbolicName = null;
    Version version = Version.emptyVersion;
    while (matcher.find()) {
      String name = matcher.group(1);
      if (SubsystemSymbolicNameHeader.NAME.equals(name))
        symbolicName = new SubsystemSymbolicNameHeader(matcher.group(2)).getValue();
      else if (SubsystemVersionHeader.NAME.equals(name))
        version = Version.parseVersion(matcher.group(2));
      else
        throw new IllegalArgumentException("Unsupported subsystem URI parameter: " + name);
    }
View Full Code Here

TOP

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

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.