1 5 package xdoclet.modules.mvcsoft.ejb; 6 7 import xdoclet.modules.ejb.dd.AbstractEjbDeploymentDescriptorSubTask; 8 9 16 public class MVCSoftSubTask extends AbstractEjbDeploymentDescriptorSubTask 17 { 18 private static String DEFAULT_TEMPLATE_FILE = "resources/mvcsoft.xdt"; 19 20 private static String DD_FILE_NAME = "mvcsoft-pm.xml"; 21 22 private String deploymentVersion = MVCSoftVersionTypes.VERSION_1_0_0; 23 24 private String connectionJndiName = "false"; 25 26 private String loggingType = "false"; 27 28 private String lightweightFactoryName = "false"; 29 30 33 public MVCSoftSubTask() 34 { 35 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 36 setDestinationFile(DD_FILE_NAME); 37 setValidateXML(false); 38 } 39 40 45 public String getDeploymentVersion() 46 { 47 return this.deploymentVersion; 48 } 49 50 55 public String getConnectionjndiname() 56 { 57 return connectionJndiName; 58 } 59 60 65 public String getLoggingtype() 66 { 67 return loggingType; 68 } 69 70 75 public String getLightweightfactoryname() 76 { 77 return lightweightFactoryName; 78 } 79 80 85 public void setDeploymentVersion(MVCSoftVersionTypes deploymentVersion) 86 { 87 this.deploymentVersion = deploymentVersion.getValue(); 88 } 89 90 96 public void setConnectionjndiname(String jndiName) 97 { 98 connectionJndiName = jndiName; 99 } 100 101 107 public void setLoggingtype(String loggingType) 108 { 109 this.loggingType = loggingType; 110 } 111 112 118 public void setLightweightfactoryname(String lightweightFactoryName) 119 { 120 this.lightweightFactoryName = lightweightFactoryName; 121 } 122 123 127 public static class MVCSoftVersionTypes extends org.apache.tools.ant.types.EnumeratedAttribute 128 { 129 public final static String VERSION_1_0_0 = "1.0.0"; 130 public final static String VERSION_1_1 = "1.1"; 131 132 137 public String [] getValues() 138 { 139 return (new String []{VERSION_1_0_0, VERSION_1_1}); 140 } 141 } 142 143 } 144 | Popular Tags |