Package org.apache.felix.ipojo.manipulator.store.builder

Examples of org.apache.felix.ipojo.manipulator.store.builder.DefaultManifestBuilder


    public BundleAwareJarFileResourceStore(final JarFile source,
                                           final File target,
                                           final BundleContext bundleContext) throws IOException {
        super(source, target);
        this.bundleContext = bundleContext;
        DefaultManifestBuilder manifestBuilder = new DefaultManifestBuilder();
        manifestBuilder.setMetadataRenderer(new MetadataRenderer());
        setManifestBuilder(manifestBuilder);
    }
View Full Code Here


     
      ComponentDeclaration template = getVersionedComponentTemplate(artifact);
      EnrichElementsHelper.addPropertiesToChildrenApAMComponents(metadata, template.getPropertyDefinitions(), template.getProperties());

      DefaultManifestBuilder builder = new DefaultManifestBuilder();
      builder.setMetadataRenderer(new MetadataRenderer());
     
      builder.addMetada(Arrays.asList(metadata.getElements()));
     
      store.setManifestBuilder(builder);

    } catch (Exception e) {
      getLog().error(e.getMessage(), e);
View Full Code Here

        manifest = new Manifest();
        Attributes attributes = manifest.getMainAttributes();
        attributes.putValue("Import-Package", ORG_OSGI_FRAMEWORK_VERSION_1_5);
        attributes.putValue("Created-By", "TestCase");

        builder = new DefaultManifestBuilder();
        builder.addReferredPackage(Collections.singleton("org.osgi.service.http"));
    }
View Full Code Here

            if (in.getName().endsWith(".war")) {
                // this is a war file, use the right mapper
                jfrs.setResourceMapper(new WABResourceMapper());
            }
            jfrs.setManifest(origin.getManifest());
            DefaultManifestBuilder dmb = new DefaultManifestBuilder();
            dmb.setMetadataRenderer(new MetadataRenderer());
            jfrs.setManifestBuilder(dmb);
            store = jfrs;
        } catch (IOException e) {
            m_reporter.error("The input file " + in.getAbsolutePath() + " is not a Jar file");
            return;
View Full Code Here

            if (in.getName().endsWith(".war")) {
                // this is a war file, use the right mapper
                jfrs.setResourceMapper(new WABResourceMapper());
            }
            jfrs.setManifest(origin.getManifest());
            DefaultManifestBuilder dmb = new DefaultManifestBuilder();
            dmb.setMetadataRenderer(new MetadataRenderer());
            jfrs.setManifestBuilder(dmb);
            store = jfrs;
        } catch (IOException e) {
            m_reporter.error("The input file " + in.getAbsolutePath() + " is not a Jar file");
            return;
View Full Code Here

                // this is a war file, use the right mapper
                store.setResourceMapper(new WABResourceMapper());
            }
            store.setManifest(manifestProvider.getManifest());
            store.setManifestFile(selectedManifestFile);
            DefaultManifestBuilder dmb = new DefaultManifestBuilder();
            dmb.setMetadataRenderer(new MetadataRenderer());
            store.setManifestBuilder(dmb);
        } else {
            m_reporter.error("The directory " + directory.getAbsolutePath() + " does not exist or is not a directory.");
            return;
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.store.builder.DefaultManifestBuilder

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.