Examples of pojoization()


Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        ClassLoader classloader = new BridgeClassLoader(original, m_context);
        // Pojoization
        Pojoization pojoizator = new Pojoization(createModuleProvider());
        try {
            pojoizator.pojoization(store, composite, createVisitor(store, reporter), classloader);
        } catch (Exception e) {
            if (!pojoizator.getErrors().isEmpty()) {
                throw new IOException("Errors occurred during the manipulation : " + pojoizator.getErrors(), e);
            }
            e.printStackTrace();
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        pojoization.setUseLocalXSD();
    File in = new File("target/test-classes/tests.manipulation-no-annotations.jar");
    File out = new File("target/test-classes/tests.manipulation-no-annotations-manipulated.jar");
    out.delete();
    File metadata = new File("target/test-classes/metadata.xml");
    pojoization.pojoization(in, out, metadata, null);

    Assert.assertTrue(out.exists());
  }

  public void testManipulationWithAnnotations() {
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

    Pojoization pojoization = new Pojoization();
        pojoization.setUseLocalXSD();
    File in = new File("target/test-classes/tests.manipulator-annotations.jar");
    File out = new File("target/test-classes/tests.manipulation-annotations-manipulated.jar");
    out.delete();
    pojoization.pojoization(in, out, (File) null, null);

    Assert.assertTrue(out.exists());
  }

  public void testJarManipulationJava5() {
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

    Pojoization pojoization = new Pojoization();
        pojoization.setUseLocalXSD();
    File in = new File("target/test-classes/tests.manipulation.java5.jar");
    File out = new File("target/test-classes/tests.manipulation.java5-manipulated.jar");
    out.delete();
    pojoization.pojoization(in, out, (File) null, null);

    Assert.assertTrue(out.exists());
  }

}
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        }

        // Executes the pojoization.
        if (is == null) {
            if (metadata == null) { // No metadata.
                pojo.pojoization(in, out, (File) null, classpath.createClassLoader()); // Only annotations
            } else {
                pojo.pojoization(in, out, metadata, classpath.createClassLoader()); // Metadata set
            }
        } else { // In-Pom metadata.
            pojo.pojoization(in, out, is, classpath.createClassLoader());
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        // Executes the pojoization.
        if (is == null) {
            if (metadata == null) { // No metadata.
                pojo.pojoization(in, out, (File) null, classpath.createClassLoader()); // Only annotations
            } else {
                pojo.pojoization(in, out, metadata, classpath.createClassLoader()); // Metadata set
            }
        } else { // In-Pom metadata.
            pojo.pojoization(in, out, is, classpath.createClassLoader());
        }
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

                pojo.pojoization(in, out, (File) null, classpath.createClassLoader()); // Only annotations
            } else {
                pojo.pojoization(in, out, metadata, classpath.createClassLoader()); // Metadata set
            }
        } else { // In-Pom metadata.
            pojo.pojoization(in, out, is, classpath.createClassLoader());
        }

        for (int i = 0; i < reporter.getWarnings().size(); i++) {
            getLog().warn((String) reporter.getWarnings().get(i));
        }
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        pojoization.disableAnnotationProcessing();
        if (m_useLocalSchemas) {
            pojoization.setUseLocalXSD();
        }

        pojoization.pojoization(store, cache, createVisitor(store, reporter), classLoader);
    }

    protected CompositeMetadataProvider buildMetadataProvider(Analyzer analyzer, BndReporter reporter, BndJarResourceStore store) {
        // Build MetadataProvider
        CompositeMetadataProvider provider = new CompositeMetadataProvider(reporter);
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        }
        if (! m_ignoreLocalXSD) {
            pojo.setUseLocalXSD();
        }
        if (m_input != null) {
            pojo.pojoization(m_input, m_output, m_metadata);
        } else {
            pojo.directoryPojoization(m_directory, m_metadata, m_manifest);
        }
        for (int i = 0; i < pojo.getWarnings().size(); i++) {
            log((String) pojo.getWarnings().get(i), Project.MSG_WARN);
View Full Code Here

Examples of org.apache.felix.ipojo.manipulator.Pojoization.pojoization()

        // Pojoization
        Pojoization pojoizator = new Pojoization();
        File out =  new File(m_temp, bundle.getName() + "-ipojo.jar");
        System.out.println("Pojoization " + bundle.exists() + " - " + metadata.exists());
        try {
            pojoizator.pojoization(bundle, out, metadata);
        } catch (Exception e) {
            if (! pojoizator.getErrors().isEmpty()) {
                throw new IOException("Errors occured during the manipulation : " + pojoizator.getErrors());
            }
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.