Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.ExtensionModule


                if (!(new File(dir.toString()).exists())) {
                    dir = new StringBuffer(location).append(
                        File.separator).append(moduleName);
                }

                ExtensionModule em = new ExtensionModule();
                //Hercules add
                em.setConfigContext(eventConfigContext);
                //end Hercules add                       
                em.setName(moduleName);
                       
                // If the bundle descriptor has no context root, then
                // its not a converged app. There is no contextRoot set.
                try {
                    ElementProperty isConvergedProperty = new ElementProperty();
                    isConvergedProperty.setName("isConverged");
                    if(wbd.getContextRoot() != null) {
                        ElementProperty contextRootProperty =
                            new ElementProperty();
                        contextRootProperty.setName("contextRoot");
                        contextRootProperty.setValue(wbd.getContextRoot());
                        isConvergedProperty.setValue("true");
                        em.addElementProperty(contextRootProperty);
                        em.addElementProperty(isConvergedProperty);
                    } else {
                        isConvergedProperty.setValue("false");
                        em.addElementProperty(isConvergedProperty);
                    }
                } catch (ConfigException ce) {
                    _logger.log(Level.WARNING,
                                "Error in adding context root: ", ce);
                }
                       
                em.setLocation(dir.toString());
                em.setEnabled(true);
                em.setObjectType(resourceType);

                wmInfo = new WebModuleConfig();
                wmInfo.setBean(em);
                wmInfo.setApplicationBean(j2eeAppBean);
                wmInfo.setDescriptor(wbd);
View Full Code Here


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

TOP

Related Classes of com.sun.enterprise.config.serverbeans.ExtensionModule

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.