Package org.apache.aries.application.management

Examples of org.apache.aries.application.management.BundleInfo


        if (findBundleInFramework(packageAdmin, bundleSymbolicName, bundleVersion) != null) {
            continue;
        }
       
        // Step 2: See if the bundle is included in the application
        BundleInfo bundleInfo = findBundleInfoInApplication(bundleSymbolicName, bundleVersion);
        if (bundleInfo == null) {
            // Step 3: Lookup bundle location using the resolver
            bundleInfo = findBundleInfoUsingResolver(resolver, bundleSymbolicName, bundleVersion);
        }
       
        if (bundleInfo == null) {
            throw new ManagementException("Cound not find bundles: " + bundleSymbolicName + "_" + bundleVersion);
        }
           
        Bundle bundle = _bundleContext.installBundle(bundleInfo.getLocation());
           
        _bundles.put(bundleInfo, bundle);       
      }
    } catch (BundleException be) {
      for (Bundle bundle : _bundles.values()) {
View Full Code Here


    // add a resource describing the requirements of the application metadata.
    obrResolver.add(createApplicationResource(helper, appName, appVersion, appContent));
    if (obrResolver.resolve()) {
      Set<BundleInfo> result = new HashSet<BundleInfo>();
      for (Resource resource: obrResolver.getRequiredResources()) {
        BundleInfo bundleInfo = toBundleInfo(resource, false);
        result.add(bundleInfo);
      }
      if (returnOptionalResources) {
        for (Resource resource: obrResolver.getOptionalResources()) {
          BundleInfo bundleInfo = toBundleInfo(resource, true);
          result.add(bundleInfo);
        }
      }
      return result;
    } else {
View Full Code Here

TOP

Related Classes of org.apache.aries.application.management.BundleInfo

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.