Examples of ExtensionModule


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

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

                    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

Examples of org.codehaus.groovy.runtime.m12n.ExtensionModule

            this.map = map;
        }

        public void onModule(final ExtensionModule module) {
            if (moduleRegistry.hasModule(module.getName())) {
            ExtensionModule loadedModule = moduleRegistry.getModule(module.getName());
            if (loadedModule.getVersion().equals(module.getVersion())) {
                // already registered
                return;
            } else {
                throw new GroovyRuntimeException("Conflicting module versions. Module ["+module.getName()+" is loaded in version "+
                        loadedModule.getVersion()+" and you are trying to load version "+module.getVersion());
            }
        }
            moduleRegistry.addModule(module);
            // register MetaMethods
            List<MetaMethod> metaMethods = module.getMetaMethods();
View Full Code Here

Examples of org.hudsonci.inject.internal.extension.ExtensionModule

        // Build the root space for the given types
        ClassSpace space = new ClassSpaceFactory().create(classLoader, types);

        // Start up the container
        SmoothieContainer container = new SmoothieContainerImpl(new ExtensionModule(space, true));
        Smoothie.setContainer(container);

        // Enable aspect-based injection
        InjectomaticAspectHelper.setEnabled(true);
View Full Code Here

Examples of org.hudsonci.inject.internal.extension.ExtensionModule

        }

        @Override
        protected void configure() {
            ClassSpace space = createClassSpace();
            install(new ExtensionModule(space, false));
            super.configure();
        }
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.