Package javax.enterprise.deploy.shared

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


    /**
     * 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

       
        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

       
        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

      
        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

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

     * 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

       
        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

       
        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

      
        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

TOP

Related Classes of javax.enterprise.deploy.shared.ModuleType

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.