KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > jmx > MLetSubTask


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

5 package xdoclet.modules.jmx;
6
7 import xdoclet.TemplateSubTask;
8
9 /**
10  * Generates mlet description for JMX MBean.
11  *
12  * @author Jerome Bernard (jerome.bernard@xtremejava.com)
13  * @created February 6, 2002
14  * @ant.element display-name="MLet" name="mlet" parent="xdoclet.modules.jmx.JMXDocletTask"
15  * @version $Revision: 1.8 $
16  *
17  * @xdoclet.merge-file file="mlet-entry-{0}.mlet" relates-to="mbeans.mlet" description="An XML document containing the MLET entry for a class, instead of generating from a jmx.mlet-entry tag."
18  */

19 public class MLetSubTask extends TemplateSubTask
20 {
21     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/mlet.xdt";
22
23     private static String JavaDoc GENERATED_FILE_NAME = "mbeans.mlet";
24
25     /**
26      * Describe what the MLetSubTask constructor does
27      */

28     public MLetSubTask()
29     {
30         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
31         setDestinationFile(GENERATED_FILE_NAME);
32         setHavingClassTag("jmx:mlet-entry");
33     }
34 }
35
Popular Tags