KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > jboss > jmx > JBossXMBeanDescriptorSubTask


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.jboss.jmx;
6
7
8 import xdoclet.XmlSubTask;
9
10 /**
11  * Generates xml file for JBossMX.
12  *
13  * @author Dmitri Colebatch (dim@bigpond.net.au)
14  * @author <a HREF="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
15  * @created Februrary 17, 2002
16  * @ant.element display-name="JBoss" name="jbossxmbean" parent="xdoclet.modules.jmx.JMXDocletTask"
17  * @version $Revision: 1.8 $
18  */

19 public class JBossXMBeanDescriptorSubTask extends XmlSubTask
20 {
21     //private static String GENERATED_FILE_NAME = "{0}.xml";
22

23     private final static String JavaDoc DD_FILE_NAME = "{0}.xml";
24
25     private final static String JavaDoc DD_PUBLICID = "-//JBoss//DTD JBOSS XMBEAN 1.0//EN";
26
27     private final static String JavaDoc DD_SYSTEMID = "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd";
28
29     private final static String JavaDoc DTD_FILE_NAME = "resources/jboss_xmbean_1_0.dtd";
30
31     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/jbossmx-xml-descriptor.xdt";
32
33     /**
34      * Describe what the JBossXMBeanDescriptorSubTask constructor does
35      */

36     public JBossXMBeanDescriptorSubTask()
37     {
38         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
39         setDestinationFile(DD_FILE_NAME);
40         setHavingClassTag("jboss:xmbean");
41         setPublicId(DD_PUBLICID);
42         setSystemId(DD_SYSTEMID);
43         setDtdURL(getClass().getResource(DTD_FILE_NAME));
44
45     }
46
47 }
48
Popular Tags