FileDocCategorySizeDatePackage
ConnectorModuleDeployer.javaAPI DocGlassfish v2 API5697Fri May 04 22:34:30 BST 2007com.sun.enterprise.deployment.backend

ConnectorModuleDeployer

public class ConnectorModuleDeployer extends ModuleDeployer

Fields Summary
private com.sun.enterprise.instance.ConnectorModulesManager
connModulesMgr
private static com.sun.enterprise.util.i18n.StringManager
localStrings
Constructors Summary
ConnectorModuleDeployer(DeploymentRequest r)

		super(r);
	
Methods Summary
protected com.sun.enterprise.instance.BaseManagercreateConfigManager(com.sun.enterprise.instance.InstanceEnvironment ienv, com.sun.enterprise.instance.ModuleEnvironment menv)

        connModulesMgr = new ConnectorModulesManager(ienv);
		return connModulesMgr;
	
protected voiddeploy()

            runVerifier();

            try {
                // copy xml files to generated/xml directory
                // this work around should be removed once connector team
                // provide a unified way to copy necessary files to
                // generated/xml directroy.
      	        String appDir = 
                    request.getDeployedDirectory().getCanonicalPath();
	        String generatedXMLDir = 
                    request.getGeneratedXMLDirectory().getCanonicalPath();

 	        FileArchive srcArchive = new FileArchive();
 	        srcArchive.open(appDir);
 			
     	        FileArchive destArchive = new FileArchive();
 	        destArchive.open(generatedXMLDir); 

                Archivist.copyExtraElements(srcArchive, destArchive);
	    } catch (Exception e) {
                throw new IASDeploymentException(e.getCause());
            }
        
protected java.util.ListgetModuleClasspath(com.sun.enterprise.deployment.archivist.Archivist archivist, com.sun.enterprise.deployment.deploy.shared.AbstractArchive archive)

return
the module classpath

	    
	    return new ArrayList();
	
protected voidpreDeploy()

		assert moduleDir != null;
		assert StringUtils.ok(moduleName);

		try
		{
			if(request.isArchive())
			{
				J2EEModuleExploder.explode(request.getFileSource().getFile(), moduleDir, moduleName);
			}
                        xmlDir.mkdirs();
		}
		catch(Exception e)
		{
			throw new IASDeploymentException(e.toString(), e);
		}