Package org.apache.geronimo.validator

Examples of org.apache.geronimo.validator.Validator


        try {
            ClassLoader loader = new URLClassLoader(new URL[]{new File(args[0]).toURL()});
            InputStream in = loader.getResourceAsStream("META-INF/ejb-jar.xml");

            EjbJarDocument jar = EjbJarDocument.Factory.parse(in);
            Validator v =new EjbValidator();
            v.initialize(new PrintWriter(new OutputStreamWriter(System.out), true), args[0], loader, ModuleType.EJB, new XmlObject[]{jar}, null);
            System.out.println("Validation Result: "+v.validate());
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here


        try {
            ClassLoader loader = new URLClassLoader(new URL[]{new File(args[0]).toURL()});
            InputStream in = loader.getResourceAsStream("META-INF/ejb-jar.xml");

            EjbJarDocument jar = EjbJarDocument.Factory.parse(in);
            Validator v =new EjbValidator();
            v.initialize(new PrintWriter(new OutputStreamWriter(System.out), true), args[0], loader, ModuleType.EJB, new XmlObject[]{jar}, null);
            System.out.println("Validation Result: "+v.validate());
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.validator.Validator

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.