User: ara_e_w
Date: 02/02/28 12:22:48
Modified: core/src/xdoclet/jmx/tags JMXTagsHandler.java
Log:
sad but true: other than the @namespace:tag we have to support @namespace.tag
notation too because of JDK1.4's strictness with unknown @tags
I made all neccessary changes (mini changes alctually, and changed CustomerBMPBean
for test).
PLEASE DON'T USE Doc.tags() methods directly, use DocletUtil.getTagsByName.
Revision Changes Path
1.5 +3 -13 xdoclet/core/src/xdoclet/jmx/tags/JMXTagsHandler.java
Index: JMXTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/jmx/tags/JMXTagsHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- JMXTagsHandler.java 5 Feb 2002 00:21:18 -0000 1.4
+++ JMXTagsHandler.java 28 Feb 2002 20:22:48 -0000 1.5
@@ -19,7 +19,7 @@
* @author Jerome Bernard ([EMAIL PROTECTED])
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created 31 January 2002
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @todo attributes - XXX: Does this need to be synchronized?
* @todo ifIsGetterMethod, ifIsSetterMethod - TODO: There is a big overlap
* here with stuff in ejb - have a look.
@@ -116,16 +116,11 @@
public void forAllIndexedMethodParams( String template, Properties attributes
) throws XDocletException
{
- MethodDoc currentMethod = getCurrentMethod();
- Tag[] tags = currentMethod.tags();
+ Tag[] tags = DocletUtil.getTagsByName( getCurrentMethod(),
"jmx:managed-operation-parameter" );
index = 0;
for( int i = 1; i < tags.length; i++ )
{
- String tagName = tags[i].name();
-
- if( !tagName.equals( "@jmx:managed-operation-parameter" ) )
- continue;
generate( template );
index++;
}
@@ -133,16 +128,11 @@
public void forAllIndexedConstructorParams( String template, Properties
attributes ) throws XDocletException
{
- ConstructorDoc currentConstructor = getCurrentConstructor();
- Tag[] tags = currentConstructor.tags();
+ Tag[] tags = DocletUtil.getTagsByName( getCurrentConstructor(),
"jmx:managed-constructor-parameter" );
index = 0;
for( int i = 1; i < tags.length; i++ )
{
- String tagName = tags[i].name();
-
- if( !tagName.equals( "@jmx:managed-constructor-parameter" ) )
- continue;
generate( template );
index++;
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel