KickJava   Java API By Example, From Geeks To Geeks.

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


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 MBean interface for JMX MBean.
11  *
12  * @author Rickard Oberg (rickard@xpedio.com)
13  * @author <a HREF="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
14  * @created September 4, 2001
15  * @ant.element display-name="MBean Interface" name="mbeaninterface" parent="xdoclet.modules.jmx.JMXDocletTask"
16  * @version $Revision: 1.10 $
17  *
18  * @xdoclet.merge-file file="mbean-custom.xdt" relates-to="MBean files" description="Custom template/code to be included in the generated MBean classes."
19  */

20 public class MBeanInterfaceSubTask extends TemplateSubTask
21 {
22     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/mbean.xdt";
23
24     private static String JavaDoc GENERATED_FILE_NAME = "{0}MBean.java";
25
26     /**
27      * Describe what the MBeanInterfaceSubTask constructor does
28      */

29     public MBeanInterfaceSubTask()
30     {
31         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
32         setDestinationFile(GENERATED_FILE_NAME);
33         setHavingClassTag("jmx:mbean");
34     }
35 }
36
Popular Tags