Creates and return an appropriate DeploymentDescriptorFile
capable of handling the passed descriptor
if (descriptor instanceof Application) {
return new ApplicationRuntimeDDFile();
}
if (descriptor instanceof EjbBundleDescriptor) {
return new EjbRuntimeDDFile();
}
if (descriptor instanceof WebBundleDescriptor) {
return new WebRuntimeDDFile();
}
if (descriptor instanceof ConnectorDescriptor) {
return new ConnectorRuntimeDDFile();
}
if (descriptor instanceof ApplicationClientDescriptor) {
return new AppClientRuntimeDDFile();
}
return null;