1 5 package xdoclet.modules.apache.axis.ejb; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XmlSubTask; 9 import xdoclet.util.Translator; 10 11 21 public class AxisDeploySubTask extends XmlSubTask 22 { 23 private final static String AXIS_SCHEMA = "http://xml.apache.org/axis/wsdd"; 24 25 private static String DEFAULT_TEMPLATE_FILE = "resources/axis-deploy_wsdd.xdt"; 26 27 private static String GENERATED_FILE_NAME = "deploy-{0}.xml"; 28 29 private String contextFactoryName = ""; 30 31 private String contextProviderUrl = ""; 32 33 36 public AxisDeploySubTask() 37 { 38 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 39 setDestinationFile(GENERATED_FILE_NAME); 41 setSchema(AXIS_SCHEMA); 42 setHavingClassTag("axis:service"); 43 setValidateXML(false); 44 } 45 46 51 public String getContextFactoryName() 52 { 53 return contextFactoryName; 54 } 55 56 61 public String getContextProviderUrl() 62 { 63 return contextProviderUrl; 64 } 65 66 71 public void setContextFactoryName(String string) 72 { 73 contextFactoryName = string; 74 } 75 76 81 public void setContextProviderUrl(String string) 82 { 83 contextProviderUrl = string; 84 } 85 86 91 public void validateOptions() throws XDocletException 92 { 93 super.validateOptions(); 94 } 95 96 101 protected void engineStarted() throws XDocletException 102 { 103 String service_urn = getCurrentClass().getDoc().getTag("axis:service").getValue(); 104 String dest_file_name = getDestinationFile(); 105 106 System.out.println(Translator.getString(XDocletModulesApacheAxisEjbMessages.class, XDocletModulesApacheAxisEjbMessages.GENERATING_DD, 107 new String []{getCurrentClass().getQualifiedName(), service_urn, dest_file_name})); 108 } 109 110 } 111 | Popular Tags |