Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/mdb
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10713/modules/ejb/src/xdoclet/modules/ejb/mdb

Modified Files:
        MdbTagsHandler.java 
Log Message:
added destination-link parameter to the bean tag for MDB's and jndi-name 
parameter to the message-destination tag

Index: MdbTagsHandler.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/mdb/MdbTagsHandler.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** MdbTagsHandler.java 25 Mar 2005 20:56:59 -0000      1.14
--- MdbTagsHandler.java 29 Mar 2005 22:50:44 -0000      1.15
***************
*** 257,260 ****
--- 257,287 ----
  
      /**
+      * Returns the jndi-name of the current message destination
+      *
+      * @return                      Current message destination's jndi-name
+      * @exception XDocletException
+      * @see                         #forAllDestinations(java.lang.String)
+      * @doc.tag                     type="content"
+      */
+     public String destinationJndiName() throws XDocletException
+     {
+         return currentDestination.getAttributeValue("jndi-name");
+     }
+ 
+     /**
+      * Evaluate the body block if the current message destination has a 
jndi-name
+      *
+      * @param template              The body of the block tag
+      * @exception XDocletException
+      * @doc.tag                     type="block"
+      */
+     public void ifDestinationHasJndiName(String template) throws 
XDocletException
+     {
+         if (destinationJndiName() != null) {
+             generate(template);
+         }
+     }
+ 
+     /**
       * Returns the description of the current message destination
       *



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to