Examples of ModuleType


Examples of javax.enterprise.deploy.shared.ModuleType

                throw new IllegalStateException(MESSAGES.managementRequestFailed(result));

            List<ModelNode> nodeList = result.get(RESULT).asList();
            for (ModelNode node : nodeList) {
                String moduleID = node.asString();
                ModuleType moduleType = null;
                if (moduleID.endsWith(".ear")) {
                    moduleType = ModuleType.EAR;
                } else if (moduleID.endsWith(".war")) {
                    moduleType = ModuleType.WAR;
                } else if (moduleID.endsWith(".rar")) {
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

                jos = new JarOutputStream(fos, manifest);
            else
                jos = new JarOutputStream(fos);

            // process all modules
            ModuleType moduleType = null;
            JarEntry entry = jis.getNextJarEntry();
            while (entry != null) {
                String entryName = entry.getName();

                // only process file entries
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

            // create the target module ids
            for (int i = 0; i < targets.length; i++) {
                JBossTarget target = (JBossTarget) targets[i];
                String moduleID = moduleInfo.getModuleID();
                ModuleType type = moduleType != null ? moduleType : moduleInfo.getModuleType();
                File contentFile = moduleInfo.getContentFile();
                targetModuleIDs[i] = new TargetModuleIDImpl(target, moduleID, null, type, contentFile);
            }
        } catch (IOException e) {
            String message = MESSAGES.deploymentValidationFailed();
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

    /**
     * A simple module type determination taking only the descriptor name into account.
     */
    private static ModuleType determineModuleType(String entryName) {
        ModuleType moduleType = null;
        if (entryName.endsWith("/application.xml")) {
            moduleType = ModuleType.EAR;
        } else if (entryName.endsWith("/application-client.xml")) {
            moduleType = ModuleType.CAR;
        } else if (entryName.endsWith("/ra.xml")) {
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

       
        if (targets.length == 0) {
            throw new NoTargetException("Cannot find target(s) to undeploy");
        }
       
        ModuleType moduleType = getModuleType();
       
        try {
            TargetModuleID[] targetModuleIds = clownfishHelper
                    .getRunningAndNonRunningTargetModules(deploymentManager,
                    moduleType, targets, command);
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

       
        if (targets.length == 0) {
            throw new NoTargetException("Cannot find target(s) to start");
        }
       
        ModuleType moduleType = getModuleType();
      
        try {
           
            TargetModuleID[] targetModuleIds = clownfishHelper
                    .getNonRunningTargetModules(deploymentManager, moduleType,
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

      
        if (targets.length == 0) {
            throw new NoTargetException("Cannot find target(s) to deploy");
        }
       
        ModuleType moduleType = getModuleType();
       
        try {
            TargetModuleID[] targetModuleIds = clownfishHelper
                    .getRunningTargetModules(deploymentManager, moduleType,
                    targets, command);
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

            throw new RedeployUnsupportedException(
                    "Unsupported redeploy operation");
        }
       
       
        ModuleType moduleType = getModuleType();
       
        try {
            TargetModuleID[] targetModuleIds = clownfishHelper
                    .getRunningAndNonRunningTargetModules(deploymentManager,
                    moduleType, targets, command);
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

     * Get module type.
     *
     * @return module type
     */
    public ModuleType getModuleType() {
        ModuleType moduleType = null;
       
        if (command.getModuleType() == null
                || "".equals(command.getModuleType().trim())) {
            moduleType = clownfishHelper.getModuleTypeByArtifact(
                    command.getArtifact());
View Full Code Here

Examples of javax.enterprise.deploy.shared.ModuleType

       
        if (targets.length == 0) {
            throw new NoTargetException("Cannot find target(s) to undeploy");
        }
       
        ModuleType moduleType = getModuleType();
       
        try {
            TargetModuleID[] targetModuleIds = clownfishHelper
                    .getRunningAndNonRunningTargetModules(deploymentManager,
                    moduleType, targets, command);
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.