Package org.apache.felix.ipojo.manipulator.render

Examples of org.apache.felix.ipojo.manipulator.render.MetadataRenderer


                                           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);
View Full Code Here

                // 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
                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

                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.render.MetadataRenderer

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.