Package org.apache.aries.application.utils.management

Examples of org.apache.aries.application.utils.management.SimpleBundleInfo


            if (url.getPath().endsWith("/")) {
                continue;
            }
            BundleManifest bm = BundleManifest.fromBundle(url.openStream());
            if (bm != null && bm.isValid()) {
                bundleInfo.add(new SimpleBundleInfo(applicationFactory, bm, url.toExternalForm()));
            }
        }
    }
View Full Code Here


                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo() throws IOException {
            return new SimpleBundleInfo(BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
View Full Code Here

                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo() throws IOException {
            return new SimpleBundleInfo(BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
View Full Code Here

    // we could change to using it here.
    Set<BundleInfo> nextResolverResult = new HashSet<BundleInfo>();
    String persistenceLibraryLocation = "../src/test/resources/bundles/repository/a.handy.persistence.library.jar";
    File persistenceLibrary = new File (persistenceLibraryLocation);
    BundleManifest mf = BundleManifest.fromBundle(persistenceLibrary);
    BundleInfo resolvedPersistenceLibrary = new SimpleBundleInfo(mf, persistenceLibraryLocation);
    Field v = SimpleBundleInfo.class.getDeclaredField("_version");
    v.setAccessible(true);
    v.set(resolvedPersistenceLibrary, new Version("1.1.0"));
    nextResolverResult.add(resolvedPersistenceLibrary);
    _resolver.setNextResult(nextResolverResult);
View Full Code Here

              IOUtils.jarUp(new File("../src/test/resources/conversion/conversion.eba/helloWorld.war"), convertedFile, warManifest);           
                final String location = toBeConverted.toString();               
              return new BundleConversion() {

          public BundleInfo getBundleInfo() throws IOException {
            return new SimpleBundleInfo(BundleManifest.fromBundle(convertedFile), location);
          }

          public InputStream getInputStream() throws IOException {
            return new FileInputStream(convertedFile);
          }
View Full Code Here

          continue;
        }
        BundleManifest bm = getBundleManifest (f);
        if (bm != null) {
          if (bm.isValid()) {
            extraBundlesInfo.add(new SimpleBundleInfo(bm, f.toURL().toExternalForm()));
          } else if (deploymentManifest == null) {
            // We have a jar that needs converting to a bundle, or a war to migrate to a WAB
            // We only do this if a DEPLOYMENT.MF does not exist.
            BundleConversion convertedBinary = null;
            Iterator<BundleConverter> converters = _bundleConverters.iterator();
View Full Code Here

    // we could change to using it here.
    Set<BundleInfo> nextResolverResult = new HashSet<BundleInfo>();
    String persistenceLibraryLocation = "../src/test/resources/bundles/repository/a.handy.persistence.library.jar";
    File persistenceLibrary = new File (persistenceLibraryLocation);
    BundleManifest mf = BundleManifest.fromBundle(persistenceLibrary);
    BundleInfo resolvedPersistenceLibrary = new SimpleBundleInfo(_appMetaFactory, mf, persistenceLibraryLocation);
    Field v = SimpleBundleInfo.class.getDeclaredField("_version");
    v.setAccessible(true);
    v.set(resolvedPersistenceLibrary, new Version("1.1.0"));
    nextResolverResult.add(resolvedPersistenceLibrary);
    _resolver.setNextResult(nextResolverResult);
View Full Code Here

              IOUtils.jarUp(new File("../src/test/resources/conversion/conversion.eba/helloWorld.war"), convertedFile, warManifest);           
                final String location = toBeConverted.toString();               
              return new BundleConversion() {

          public BundleInfo getBundleInfo(ApplicationMetadataFactory amf) throws IOException {
            return new SimpleBundleInfo(amf, BundleManifest.fromBundle(convertedFile), location);
          }

          public InputStream getInputStream() throws IOException {
            return new FileInputStream(convertedFile);
          }
View Full Code Here

                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo(ApplicationMetadataFactory amf) throws IOException {
            return new SimpleBundleInfo(amf, BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
View Full Code Here

          continue;
        }
        BundleManifest bm = getBundleManifest (f);
        if (bm != null) {
          if (bm.isValid()) {
            extraBundlesInfo.add(new SimpleBundleInfo(_applicationMetadataFactory, bm, f.toURL().toExternalForm()));
          } else if (deploymentManifest == null) {
            // We have a jar that needs converting to a bundle, or a war to migrate to a WAB
            // We only do this if a DEPLOYMENT.MF does not exist.
            BundleConversion convertedBinary = null;
            Iterator<BundleConverter> converters = _bundleConverters.iterator();
View Full Code Here

TOP

Related Classes of org.apache.aries.application.utils.management.SimpleBundleInfo

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.