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

Examples of org.apache.aries.subsystem.core.archive.ProvisionResourceHeader$Clause


 
  private void computeDependencies(DeploymentManifest manifest) {
    if (manifest == null)
      computeDependencies(getSubsystemManifest());
    else {
      ProvisionResourceHeader header = manifest.getProvisionResourceHeader();
      if (header == null)
        return;
      for (ProvisionResourceHeader.Clause clause : header.getClauses()) {
        Resource resource = findDependency(clause);
        if (resource == null)
          throw new SubsystemException("Resource does not exist: " + clause);
        addDependency(resource);
      }
View Full Code Here


 
  public static boolean isDependency(BasicSubsystem subsystem, Resource resource) {
    DeploymentManifest manifest = subsystem.getDeploymentManifest();
    if (manifest == null)
      return false;
    ProvisionResourceHeader header = manifest.getProvisionResourceHeader();
    if (header == null)
      return false;
    return header.contains(resource);
  }
View Full Code Here

    }
    return false;
  }
 
  protected boolean isTransitive() {
    ProvisionResourceHeader header = subsystem.getDeploymentManifest().getProvisionResourceHeader();
    if (header == null)
      return false;
    return header.contains(resource);
  }
View Full Code Here

TOP

Related Classes of org.apache.aries.subsystem.core.archive.ProvisionResourceHeader$Clause

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.