assert request != null;
request.verify();
if(request.isApplication())
return getAppDeployer(request);
else if(request.isEjbModule())
return new EjbModuleDeployer(request);
else if(request.isWebModule())
return new WebModuleDeployer(request);
else if(request.isConnectorModule())
return new ConnectorModuleDeployer(request);
else if (request.isAppClientModule())
{
if(request.isDirectory())
{
String msg = localStrings.getStringWithDefault
(
"enterprise.deployment.backend.DirDeployOfAppClient",
"App Client Directory-Deployment not supported"
);
throw new IASDeploymentException(msg);
}
else
return new AppClientModuleDeployer(request);
}
else {
String msg = localStrings.getString(
"enterprise.deployment.backend.deployment_not_supported" );
throw new IASDeploymentException( msg );
}