1 5 package xdoclet.modules.jboss.jmx; 6 7 import xdoclet.XDocletException; 8 9 import xdoclet.XmlSubTask; 10 11 27 public class JBossXmlServiceTemplateSubTask extends XmlSubTask 28 { 29 private final static String DD_FILE_NAME = "-service.xml"; 30 31 private static String DEFAULT_TEMPLATE_FILE = "resources/jboss-service-template.xdt"; 32 33 private String servicefile; 34 35 38 public JBossXmlServiceTemplateSubTask() 39 { 40 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 41 setDestinationFile(DD_FILE_NAME); 42 setHavingClassTag("jmx:mbean"); 43 } 44 45 50 public String getServicefile() 51 { 52 return servicefile; 53 } 54 55 60 public void setServicefile(String servicefile) 61 { 62 this.servicefile = servicefile; 63 } 64 65 66 public void execute() throws XDocletException 67 { 68 setDestinationFile(servicefile + "-service.xml"); 69 setHavingClassTag("jmx:mbean"); 70 super.execute(); 71 } 72 } 73 | Popular Tags |