Update of /cvsroot/xdoclet/xdoclet2/plugins/ejb-jar/src/java/xdoclet/plugins/ejbJar
In directory 
sc8-pr-cvs1:/tmp/cvs-serv30673/plugins/ejb-jar/src/java/xdoclet/plugins/ejbJar

Modified Files:
        EjbJarPlugin.java 
Log Message:
Cleanup.

Index: EjbJarPlugin.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet2/plugins/ejb-jar/src/java/xdoclet/plugins/ejbJar/EjbJarPlugin.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** EjbJarPlugin.java   8 Nov 2002 02:04:23 -0000       1.1.1.1
--- EjbJarPlugin.java   22 Nov 2002 21:26:03 -0000      1.2
***************
*** 6,10 ****
  import xjavadoc.XTagFactory;
  
- import java.util.Collection;
  import java.util.Properties;
  import java.util.ArrayList;
--- 6,9 ----
***************
*** 17,37 ****
   * @version $Revision$
   */
! public class EjbJarPlugin extends Plugin {
  
      // Register tags in the class initialiser
!     static {
          XTagFactory.registerTagClass("ejb.bean", EjbBeanTag.class);
      }
  
!     protected List createGenerators() {
          ArrayList result = new ArrayList(2);
  
!         // One using JAXB
! //        FileDestination jaxbDestination = new 
FileDestination(getDir(),"ejb-jar-jaxb.xml");
! //        Generator jaxbGenerator = new JAXBEjbJarGenerator(jaxbDestination, 
getAcceptedClasses(), new Properties());
! //        result.add(jaxbGenerator);
! 
!         // One using Castor
!         FileDestination castorDestination = new 
FileDestination(getDestinationDir(),"ejb-jar.xml");
          Generator castorGenerator = new CastorEjbJarGenerator(castorDestination, 
getAcceptedClasses(), new Properties());
          result.add(castorGenerator);
--- 16,34 ----
   * @version $Revision$
   */
! public class EjbJarPlugin extends Plugin
! {
  
      // Register tags in the class initialiser
!     static
!     {
          XTagFactory.registerTagClass("ejb.bean", EjbBeanTag.class);
      }
  
!     protected List createGenerators()
!     {
          ArrayList result = new ArrayList(2);
  
!         // using Castor
!         FileDestination castorDestination = new FileDestination(getDestinationDir(), 
"ejb-jar.xml");
          Generator castorGenerator = new CastorEjbJarGenerator(castorDestination, 
getAcceptedClasses(), new Properties());
          result.add(castorGenerator);
***************
*** 40,44 ****
      }
  
!     protected boolean accept( XClass clazz ) {
          return clazz.isA("javax.ejb.EnterpriseBean");
      }
--- 37,42 ----
      }
  
!     protected boolean accept(XClass clazz)
!     {
          return clazz.isA("javax.ejb.EnterpriseBean");
      }



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to