KickJava   Java API By Example, From Geeks To Geeks.

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


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

5 package xdoclet.modules.jboss.jmx;
6
7 import xdoclet.XmlSubTask;
8
9 /**
10  * Generates a skeleton {0}-service.xml file for JBoss mbean configuration. This can help you see what you can set in an
11  * mbean, you can just fill in your values and deploy. Currently there is a limitation that only managed attributes with
12  * getters show up in the results, however there is a comment for those with only a setter. It treats read-only managed
13  * attributes as if they can be written.
14  *
15  * @author <a HREF="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
16  * @created April 4, 2002
17  * @ant.element display-name="JBoss XML Doc" name="jbossxmldoc" parent="xdoclet.modules.jmx.JMXDocletTask"
18  * @version $Revision: 1.6 $
19  */

20 public class JBossXmlDocSubTask extends XmlSubTask
21 {
22     private final static String JavaDoc DD_FILE_NAME = "{0}-doc.xml";
23
24     private final static String JavaDoc DD_PUBLICID = "-//OASIS//DTD DocBook XML V4.1.2//EN";
25
26     private final static String JavaDoc DD_SYSTEMID = "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";
27
28     //private final static String DTD_FILE_NAME = "";
29

30     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/jbossmx-xml-doc.xdt";
31
32     /**
33      * Describe what the JBossXmlDocSubTask constructor does
34      */

35     public JBossXmlDocSubTask()
36     {
37         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
38         setDestinationFile(DD_FILE_NAME);
39         setHavingClassTag("jmx:mbean");
40         setPublicId(DD_PUBLICID);
41         setSystemId(DD_SYSTEMID);
42     }
43 }
44
Popular Tags