Examples of ModuleDependency


Examples of org.jboss.as.server.deployment.module.ModuleDependency

                String slot = module.get(CommonAttributes.SLOT).asString();
                if (slot == null) {
                    slot = "main";
                }
                final ModuleIdentifier identifier = ModuleIdentifier.create(name, slot);
                moduleSpecification.addSystemDependency(new ModuleDependency(Module.getBootModuleLoader(), identifier, false, false, true));
            }
        }
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.ModuleDependency

        final ModuleLoader moduleLoader = Module.getBootModuleLoader();

        addJSFAPI(jsfVersion, moduleSpecification, moduleLoader);
        addJSFImpl(jsfVersion, moduleSpecification, moduleLoader);

        moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, JSTL, false, false, false, false));
        moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, JSF_SUBSYSTEM, false, false, true, false));

        addJSFInjection(jsfVersion, moduleSpecification, moduleLoader);

        WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
        if(warMetaData != null) {
View Full Code Here

Examples of org.jboss.as.server.deployment.module.ModuleDependency

    private void addJSFAPI(String jsfVersion, ModuleSpecification moduleSpecification, ModuleLoader moduleLoader) throws DeploymentUnitProcessingException {
        if (jsfVersion.equals(JsfVersionMarker.WAR_BUNDLES_JSF_IMPL)) return;

        ModuleIdentifier jsfModule = moduleIdFactory.getApiModId(jsfVersion);
        ModuleDependency jsfAPI = new ModuleDependency(moduleLoader, jsfModule, false, false, false, false);
        moduleSpecification.addSystemDependency(jsfAPI);
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.ModuleDependency

            ModuleSpecification moduleSpecification,
            ModuleLoader moduleLoader) {
        if (jsfVersion.equals(JsfVersionMarker.WAR_BUNDLES_JSF_IMPL)) return;

        ModuleIdentifier jsfModule = moduleIdFactory.getImplModId(jsfVersion);
        ModuleDependency jsfImpl = new ModuleDependency(moduleLoader, jsfModule, false, false, true, false);
        jsfImpl.addImportFilter(PathFilters.getMetaInfFilter(), true);
        moduleSpecification.addSystemDependency(jsfImpl);
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.ModuleDependency

    private void addJSFInjection(String jsfVersion, ModuleSpecification moduleSpecification, ModuleLoader moduleLoader) {
        if (jsfVersion.equals(JsfVersionMarker.WAR_BUNDLES_JSF_IMPL)) return;

        ModuleIdentifier jsfInjectionModule = moduleIdFactory.getInjectionModId(jsfVersion);
        ModuleDependency jsfInjectionDependency = new ModuleDependency(moduleLoader, jsfInjectionModule, false, true, true, false);
        jsfInjectionDependency.addImportFilter(PathFilters.getMetaInfFilter(), true);
        moduleSpecification.addSystemDependency(jsfInjectionDependency);
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.module.ModuleDependency

    @Override
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        final ModuleLoader moduleLoader = Module.getBootModuleLoader();
        final ModuleSpecification moduleSpec = unit.getAttachment(Attachments.MODULE_SPECIFICATION);
        moduleSpec.addSystemDependency(new ModuleDependency(moduleLoader, MAIL_API, false, false, true, false));
        moduleSpec.addSystemDependency(new ModuleDependency(moduleLoader, ACTIVATION_API, false, false, true, false));

    }
View Full Code Here

Examples of org.openbravo.services.webservice.ModuleDependency

  private ModuleDependency[] dyanaBeanToDependencies(Vector<DynaBean> dynDependencies,
      String ad_module_id) {
    final ArrayList<ModuleDependency> dep = new ArrayList<ModuleDependency>();
    for (final DynaBean dynModule : dynDependencies) {
      if (((String) dynModule.get("AD_MODULE_ID")).equals(ad_module_id)) {
        final ModuleDependency md = new ModuleDependency();
        md.setModuleID((String) dynModule.get("AD_DEPENDENT_MODULE_ID"));
        md.setVersionStart((String) dynModule.get("STARTVERSION"));
        md.setVersionEnd((String) dynModule.get("ENDVERSION"));
        md.setModuleName((String) dynModule.get("DEPENDANT_MODULE_NAME"));
        dep.add(md);
      }
    }
    final ModuleDependency rt[] = new ModuleDependency[dep.size()];
    for (int i = 0; i < rt.length; i++) {
      rt[i] = dep.get(i);
    }
    return rt;
  }
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.