1 23 24 25 package com.sun.enterprise.deployment.io.runtime; 26 27 import com.sun.enterprise.deployment.*; 28 import com.sun.enterprise.deployment.io.DeploymentDescriptorFile; 29 30 31 36 public class RuntimeDDFileFactory { 37 38 39 private RuntimeDDFileFactory() { 40 } 41 42 49 public static DeploymentDescriptorFile getDDFileFor(RootDeploymentDescriptor descriptor) { 50 if (descriptor instanceof Application) { 51 return new ApplicationRuntimeDDFile(); 52 } 53 if (descriptor instanceof EjbBundleDescriptor) { 54 return new EjbRuntimeDDFile(); 55 } 56 if (descriptor instanceof WebBundleDescriptor) { 57 return new WebRuntimeDDFile(); 58 } 59 if (descriptor instanceof ConnectorDescriptor) { 60 return new ConnectorRuntimeDDFile(); 61 } 62 if (descriptor instanceof ApplicationClientDescriptor) { 63 return new AppClientRuntimeDDFile(); 64 } 65 return null; 66 } 67 } 68 69 | Popular Tags |