Examples of GateInConfiguration


Examples of org.gatein.integration.jboss.as7.GateInConfiguration

            return; // Skip non portlet deployments
        }

        final ModuleSpecification moduleSpecification = du.getAttachment(Attachments.MODULE_SPECIFICATION);

        GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);

        // Add module dependencies
        for (ModuleDependency dep : config.getPortletWarDependencies()) {
            moduleSpecification.addSystemDependency(dep);
        }

        // Provide tlds for portlet taglibs
        provideTlds(du);
View Full Code Here

Examples of org.gatein.integration.jboss.as7.GateInConfiguration

    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit du = phaseContext.getDeploymentUnit();

        if (GateInConfiguration.isGateInArchive(du)) {
            log.info("Module is on GateIn Extension modules list");
            final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);

            final ServiceName initSvcName = GateInExtension.deploymentUnitName(config.getGateInEarModule(), "gatein", "init");
            final ServiceTarget target = phaseContext.getServiceTarget();

            if (du.getAttachment(GateInEarKey.KEY) != null) {
                // Install InitService with dependency on all the deployment modules reaching POST_MODULE
                // TODO: we are starting up InitService before child modules (jboss.deployment.subunit.*) have gone through
                // POST_MODULE
                final ServiceBuilder<InitService> builder = target.addService(initSvcName, new InitService(config))
                        .addDependency(GateInExtension.deploymentUnitName(config.getGateInEarModule(), Phase.POST_MODULE));

                for (ModuleIdentifier module : config.getGateInExtModules()) {
                    builder.addDependency(GateInExtension.deploymentUnitName(module, Phase.POST_MODULE));
                }
                builder.install();
                log.info("Installed " + initSvcName);
            }
View Full Code Here

Examples of org.gatein.integration.jboss.as7.GateInConfiguration

        // Wait to the last GateIn archive deployment unit install
        // Then enumerate all the child components which should all be scheduled for startup at that point
        // to get the dependencies for StartupService

        if (GateInConfiguration.isGateInArchive(du)) {
            final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);

            final ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);

            if (isLastModuleStarting(config, moduleId)) {
                final StartupService startup = new StartupService();
                startup.setGateInModule(du.getAttachment(Attachments.MODULE));

                final ServiceBuilder<StartupService> builder = phaseContext.getServiceTarget().addService(
                        StartupService.SERVICE_NAME, startup);

                builder.addDependency(GateInExtension.deploymentUnitName(config.getGateInEarModule(), Phase.CLEANUP));
                for (ModuleIdentifier id : config.getGateInExtModules()) {
                    builder.addDependency(GateInExtension.deploymentUnitName(id, Phase.CLEANUP));
                }

                // Looks like web archives are completely covered by jboss.web services
                for (ServiceName svcName : config.getChildWars()) {
                    builder.addDependency(svcName);
                }

                // Subunit not necessary for web archives - but might be necessary for non-web
                for (ServiceName svcName : config.getChildSubUnits()) {
                    builder.addDependency(svcName.append(Phase.CLEANUP.name()));
                }

                // Subcomponents not necessary for web archives - but might necessary for non-web
                List<String> prefixes = config.getChildSubUnitComponentPrefixes();
                for (ServiceName name : du.getServiceRegistry().getServiceNames()) {
                    for (String prefix : prefixes) {
                        if (name.getCanonicalName().startsWith(prefix)) {
                            builder.addDependency(name);
                        }
View Full Code Here

Examples of org.gatein.integration.jboss.as7.GateInConfiguration

            // add gatein deployment modules cross-dependencies
            ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);

            if (GateInConfiguration.isGateInArchive(du)) {
                final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
                final ServiceModuleLoader deploymentModuleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

                if (!moduleId.equals(config.getGateInEarModule())) {
                    moduleSpec.addSystemDependency(new ModuleDependency(deploymentModuleLoader,
                        config.getGateInEarModule(), false, false, false, false));
                }

                for (ModuleIdentifier id : config.getGateInExtModules()) {
                    if (!moduleId.equals(id)) {
                        moduleSpec.addSystemDependency(new ModuleDependency(deploymentModuleLoader,
                            id, false, false, false, false));
                    }
                }
View Full Code Here

Examples of org.gatein.integration.jboss.as7.GateInConfiguration

            } else if (pathName.length() > 0 && pathName.charAt(0) != '/') {
                pathName = "/" + pathName;
            }
        }

        GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
        ServiceName deploymentServiceName = WebSubsystemServices.deploymentServiceName("default-host", pathName);

        config.addChildWar(deploymentServiceName);
    }
View Full Code Here

Examples of org.gatein.integration.jboss.as7.GateInConfiguration

            // add gatein deployment modules cross-dependencies
            ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);

            if (GateInConfiguration.isGateInArchive(du)) {
                final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
                final ServiceModuleLoader deploymentModuleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

                if (!moduleId.equals(config.getGateInEarModule())) {
                    if (!containsDependency(dependencies, config.getGateInEarModule())) {
                        du.addToAttachmentList(Attachments.MANIFEST_DEPENDENCIES, new ModuleDependency(deploymentModuleLoader,
                                config.getGateInEarModule(), false, false, false, false));
                    }
                }

                for (ModuleIdentifier id : config.getGateInExtModules()) {
                    if (!moduleId.equals(id)) {
                        if (!containsDependency(dependencies, id)) {
                            du.addToAttachmentList(Attachments.MANIFEST_DEPENDENCIES, new ModuleDependency(
                                    deploymentModuleLoader, id, false, false, false, false));
                        }
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.