Package org.apache.aries.application.modelling.impl

Examples of org.apache.aries.application.modelling.impl.ImportedPackageImpl


        {
          mergedAttribs.put(OPTIONAL_KEY, Constants.RESOLUTION_OPTIONAL);
        }
       
        try {
          result = (isIntersectSuccessful ? new ImportedPackageImpl(p1.getPackageName(), mergedAttribs) : null);
        } catch (InvalidAttributeException iax) {
          logger.error(iax.getMessage());
        }
      }
    }
View Full Code Here


        {
          mergedAttribs.put(OPTIONAL_KEY, Constants.RESOLUTION_OPTIONAL);
        }
       
        try {
          result = (isIntersectSuccessful ? new ImportedPackageImpl(p1.getPackageName(), mergedAttribs) : null);
        } catch (InvalidAttributeException iax) {
          logger.error(iax.getMessage());
        }
      }
    }
View Full Code Here

  }
 
  static ImportedPackage newImportedPackage (String name, String version) throws InvalidAttributeException {
    Map<String, String> attrs = new HashMap<String, String>();
    attrs.put(Constants.VERSION_ATTRIBUTE, version);
    return new ImportedPackageImpl (name, attrs);
  }
View Full Code Here

 
  static ImportedPackage newImportedPackage (String name, String version, boolean optional) throws InvalidAttributeException {
    Map<String, String> attrs = new HashMap<String, String>();
    attrs.put(Constants.VERSION_ATTRIBUTE, version);
    attrs.put(Constants.RESOLUTION_DIRECTIVE + ":", (optional)?Constants.RESOLUTION_OPTIONAL:Constants.RESOLUTION_MANDATORY);
    return new ImportedPackageImpl (name, attrs);
  }
View Full Code Here

 
  static ImportedPackage newImportedPackage (String name, String version, String attribute) throws InvalidAttributeException {
    Map<String, String> attrs = new HashMap<String, String>();
    attrs.put(Constants.VERSION_ATTRIBUTE, version);
    attrs.put(attribute.split("=")[0], attribute.split("=")[1]);
    return new ImportedPackageImpl (name, attrs);
  }
View Full Code Here

TOP

Related Classes of org.apache.aries.application.modelling.impl.ImportedPackageImpl

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.