Package org.apache.tuscany.sca.contribution.jee

Examples of org.apache.tuscany.sca.contribution.jee.JavaEEModuleHelper


            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        WebModule wm = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath()).getWebModules().get(0);
        if(!tempFile.delete()) {
            tempFile.deleteOnExit();
        }
        return createWebModuleInfo(wm);
    }
View Full Code Here


            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        EjbModule em;
        try {
            em = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath()).getEjbModules().get(0);
        } catch(ContributionReadException e) {
            if((e.getCause() instanceof UnknownModuleTypeException) ||
                (e.getCause() instanceof UnsupportedModuleTypeException)) {
                // Not an EJB jar
                return null;
View Full Code Here

            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        AppModule appModule = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath());
        if(!tempFile.delete()) {
            tempFile.deleteOnExit();
        }
        return createJavaEEApplicationInfo(appModule);
    }
View Full Code Here

            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        WebModule wm = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath()).getWebModules().get(0);
        if(!tempFile.delete()) {
            tempFile.deleteOnExit();
        }
        return createWebModuleInfo(wm);
    }
View Full Code Here

            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        EjbModule em;
        try {
            em = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath()).getEjbModules().get(0);
        } catch(ContributionReadException e) {
            if((e.getCause() instanceof UnknownModuleTypeException) ||
                (e.getCause() instanceof UnsupportedModuleTypeException)) {
                // Not an EJB jar
                return null;
View Full Code Here

            inp.close();
        } catch (IOException e) {
            throw new ContributionReadException(e);
        }

        JavaEEModuleHelper jmh = new JavaEEModuleHelper();
        AppModule appModule = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath());
        if(!tempFile.delete()) {
            tempFile.deleteOnExit();
        }
        return createJavaEEApplicationInfo(appModule);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.contribution.jee.JavaEEModuleHelper

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.