Package org.jvnet.glassfish.comms.admin.clbadmin.reader.api

Examples of org.jvnet.glassfish.comms.admin.clbadmin.reader.api.WebModuleReader


    /**
     * Visit reader class
     */
    public void visit(BaseReader br) {
        // FIXME, make as assert here about no class cast exception
        WebModuleReader wRdr = (WebModuleReader) br;

        try {
            _w.setContextRoot(wRdr.getContextRoot());
            _w.setType(wRdr.getType());
        } catch (LbReaderException le) {
            // XXX ignore
        }
    }
View Full Code Here


                WebModule wMod = (WebModule) bean;

                if ((wMod != null) &&
                        (wMod.getObjectType().equals(IAdminConstants.USER))) {
                    String l = lhelper.getSunWebXmlPathForModule(wMod.getName());
                    WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                            refs[i], bean, createSunWebApp(l));
                    list.add(wr);
                }
            } else if (bean instanceof ExtensionModule) {
                ExtensionModule exMod = (ExtensionModule) bean;
               
                if (exMod != null &&
                        exMod.getObjectType().equals(IAdminConstants.USER) &&
                        exMod.getModuleType().equals(EX_MOD_TYPE) &&
                        Boolean.parseBoolean(exMod.getElementPropertyByName(IS_CONVERGED).getValue())) {
                    WebModuleReader wr = new ExtensionModuleReaderImpl(_configCtx,
                            refs[i], bean);
                    list.add(wr);
                }
            } else if (bean instanceof J2eeApplication) {
                J2eeApplication app = (J2eeApplication) bean;

                if ((app != null) &&
                        (app.getObjectType().equals(IAdminConstants.USER))) {
                    // get all the web modules inside application
                    List l = lhelper.getSunWebXmlPathForApplication(app.getName());
                    int size = l.size();

                    for (int j = 0; j < size; j++) {
                        WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                                refs[i], app,
                                createSunWebApp((String) l.get(j)));
                        list.add(wr);
                    }

                    List l1 = lhelper.getSunEjbJarXmlPathForApplication(app.getName());
                    int size1 = l1.size();

                    for (int j = 0; j < size1; j++) {
                        List<WebserviceEndpoint> wsepList = createWebserviceEndpoint((String) l1.get(
                                    j));

                        for (WebserviceEndpoint wsep : wsepList) {
                            WebModuleReader wr = new EjbJarModuleReaderImpl(_configCtx,
                                    refs[i], wsep);
                            list.add(wr);
                        }
                    }
                }
View Full Code Here

        return list;
    }

    private static class WebModuleComparator implements Comparator {
        public int compare(Object webmodule1, Object webmodule2) {
            WebModuleReader wm1 = (WebModuleReader) webmodule1;
            WebModuleReader wm2 = (WebModuleReader) webmodule2;
            String wmcxt1 = null;
            String wmcxt2 = null;
            try {
                wmcxt1 = wm1.getContextRoot();
                wmcxt2 = wm2.getContextRoot();
            } catch (LbReaderException le) {
                // XXX ignore
            }
            if ((wmcxt1 == null) || (wmcxt2 == null)) {
                _logger.log(Level.SEVERE, _sMgr.getString("sip.clbadmin.NoContextRoot"));
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.admin.clbadmin.reader.api.WebModuleReader

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.