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

Modified Files:
        EjbTagsHandler.java 
Log Message:
Saved the current bean class within forAllBeans and modified ejbName to ensure 
that the correct ejb-name element is used when generating assembly descriptor 
elements for inherited methods (XDT-1198)

Index: EjbTagsHandler.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/EjbTagsHandler.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** EjbTagsHandler.java 7 Aug 2004 08:31:04 -0000       1.25
--- EjbTagsHandler.java 5 Feb 2005 21:42:29 -0000       1.26
***************
*** 47,50 ****
--- 47,52 ----
      protected final static String LOCAL_SUFFIX = "Local";
  
+     private XClass  currentEjbClass;
+ 
      /**
       * Gets the AConcreteEJBean attribute of the EjbTagsHandler class
***************
*** 499,503 ****
          String prefixWithEjbSlashStr = 
attributes.getProperty("prefixWithEjbSlash");
          boolean prefixWithEjbSlash = 
TypeConversionUtil.stringToBoolean(prefixWithEjbSlashStr, false);
!         String ejbName = getEjbNameFor(getCurrentClass());
  
          if (prefixWithEjbSlash == true) {
--- 501,505 ----
          String prefixWithEjbSlashStr = 
attributes.getProperty("prefixWithEjbSlash");
          boolean prefixWithEjbSlash = 
TypeConversionUtil.stringToBoolean(prefixWithEjbSlashStr, false);
!         String ejbName = getEjbNameFor(currentEjbClass == null ? 
getCurrentClass() : currentEjbClass);
  
          if (prefixWithEjbSlash == true) {
***************
*** 583,587 ****
--- 585,591 ----
              if (EntityTagsHandler.isEntity(getCurrentClass()) || 
SessionTagsHandler.isSession(getCurrentClass()) ||
                  MdbTagsHandler.isMessageDriven(getCurrentClass())) {
+                 currentEjbClass = getCurrentClass();
                  generate(template);
+                 currentEjbClass = null;
              }
          }



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to