Package javax.enterprise.deploy.shared

Examples of javax.enterprise.deploy.shared.ModuleType


                    wasUnRegistered = true;
                }
            }
           
            if (req.isExtensionModule()) {
                ModuleType moduleType = req.getType().getModuleType();
                extDeployer =
                    PluggableDeploymentInfo.getExtensionModuleDeployer(
                        moduleType);  
                if (isRedeploy) {
                    extDeployer.redeployToDomain(req);
View Full Code Here


        status.addProperty(key, moduleID); //moduleID

        key =  com.sun.appserv.management.deploy.DeploymentStatus.MODULE_ID_KEY;
        status.addProperty(key, moduleID); //moduleID

        ModuleType moduleType = request.getType().getModuleType();

        if(request.isExtensionModule()) {
            key = moduleID + sep + DeploymentStatus.XMODULE_TYPE;
            status.addProperty(key, String.valueOf(moduleType.getValue()));
        } else {
           key = moduleID + sep + DeploymentStatus.MODULE_TYPE;
           status.addProperty(key, String.valueOf(moduleType.getValue())); //moduleType           
        }
       
        //sub modules
        Application app = request.getDescriptor();
        if (app!=null) {
View Full Code Here

     */
    private void populateWsdlFilesForPublish(
                    DeploymentStatus status, DeploymentRequest request)
        throws IOException, IASDeploymentException {

        ModuleType moduleType = request.getType().getModuleType();
        //only EAR, WAR and EJB archives could contain wsdl files for publish
        if (!(ModuleType.EAR.equals(moduleType) ||
              ModuleType.WAR.equals(moduleType) ||
              ModuleType.EJB.equals(moduleType))) {
            return;
View Full Code Here

                }
            }

            Archivist archivist =
                ArchivistFactory.getArchivistForArchive(filePath);
            ModuleType moduleType = archivist.getModuleType();
            return getDeployableObjectType(moduleType);
        } catch (IOException ioe) {
            DeploymentException de = new DeploymentException(
                localStrings.getString(
                    "enterprise.deployment.ioexc_getting_archtype", filePath));
View Full Code Here

        } else if (module instanceof AppclientModule) {
            result = DeployableObjectType.CAR;
        } else if (module instanceof ConnectorModule) {
            result = DeployableObjectType.CONN;
        } else if (module instanceof ExtensionModule) {
            ModuleType mType = XModuleType.getModuleType(
                ((ExtensionModule)module).getModuleType());
            result =  DeployableObjectType.getDeployableObjectType(mType);
        } else {
            result = null;
        }
View Full Code Here

            DeploymentStatus cleanupStatus =
                new DeploymentStatus(status);
            req.setCurrentDeploymentStatus(cleanupStatus);

            if (req.isExtensionModule()) {
                ModuleType moduleType = req.getType().getModuleType();
                extDeployer =
                    PluggableDeploymentInfo.getExtensionModuleDeployer(
                        moduleType);
                extDeployer.undeployFromDomain(req);
            } else {
View Full Code Here

     *   b. ejb module and schema version earlier than 3.0;
     *   c. web module and schema version earlier than 2.5;
     *   d. appclient module and schema version earlier than 5.0.
     */
    public boolean isDDWithNoAnnotationAllowed() {  
        ModuleType mType = getModuleType();

        double specVersion = Double.parseDouble(getSpecVersion());

        // connector DD doesn't have annotation, so always treated
        // as full DD
        if (mType.equals(ModuleType.RAR)) {
            return true;
        } else {
            // we do not process annotations for earlier versions of DD
            if ( (mType.equals(ModuleType.EJB) &&
                  specVersion < ANNOTATION_EJB_VER) ||
                 (mType.equals(ModuleType.WAR) &&
                  specVersion < ANNOTATION_WAR_VER) ||
                 (mType.equals(ModuleType.CAR) &&
                  specVersion < ANNOTATION_CAR_VER) ) {
                return true;
            } else {
                return false;
            }
View Full Code Here

   
    private String createArchive(String dir, String archiveName) {
        String archivePath;
        try {
            Archivist archivist = ArchivistFactory.getArchivistForArchive(dir);
            ModuleType moduleType = archivist.getModuleType();
            String pathExtn = ".jar";
            if (ModuleType.EAR.equals(moduleType)) {
                pathExtn = ".ear";
            } else if (ModuleType.WAR.equals(moduleType)) {
                pathExtn = ".war";
View Full Code Here

            DeploymentContext.deleteDirectory(destFile);
            destFile.mkdir();
        }
        Archivist archivist = ArchivistFactory.getArchivistForArchive(srcFile);
        try {
            ModuleType moduleType = archivist.getModuleType();
            if(ModuleType.EAR.equals(moduleType)) {
                J2EEModuleExploder.explodeEar(srcFile, destFile);
            } else if ( ModuleType.EJB.equals(moduleType) ||
                    ModuleType.CAR.equals(moduleType) ||
                    ModuleType.RAR.equals(moduleType) ||
View Full Code Here

    getLogMsg("getModuleType for standaloneModuleName" +
    standaloneModuleName));

        // iterate through each of module types

        ModuleType moduleType = null;

        try {

            // Application
            Applications appsConfigBean =
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.