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

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


      return capabilities.iterator().next().getResource();
    return null;
  }
 
  private Resource findContent(DeployedContentHeader.Clause clause) throws BundleException, IOException, InvalidSyntaxException, URISyntaxException {
    Attribute attribute = clause.getAttribute(DeployedContentHeader.Clause.ATTRIBUTE_RESOURCEID);
    long resourceId = attribute == null ? -1 : Long.parseLong(String.valueOf(attribute.getValue()));
    if (resourceId != -1) {
      String type = clause.getType();
      if (IdentityNamespace.TYPE_BUNDLE.equals(type) || IdentityNamespace.TYPE_FRAGMENT.equals(type)) {
        Bundle resource = Activator.getInstance().getBundleContext().getBundle(0).getBundleContext().getBundle(resourceId);
        if (resource == null)
View Full Code Here


    }
    return findContent(clause.toRequirement(this));
  }
 
  private Resource findDependency(ProvisionResourceHeader.Clause clause) {
    Attribute attribute = clause.getAttribute(DeployedContentHeader.Clause.ATTRIBUTE_RESOURCEID);
    long resourceId = attribute == null ? -1 : Long.parseLong(String.valueOf(attribute.getValue()));
    if (resourceId != -1) {
      String type = clause.getType();
      if (IdentityNamespace.TYPE_BUNDLE.equals(type) || IdentityNamespace.TYPE_FRAGMENT.equals(type))
        return Activator.getInstance().getBundleContext().getBundle(0).getBundleContext().getBundle(resourceId).adapt(BundleRevision.class);
      else
View Full Code Here

TOP

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

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.