Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/descriptor
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26802/src/main/java/org/xdoclet/plugin/ejb/descriptor

Modified Files:
        EjbJarXmlPlugin.java 
Log Message:
Replace Sun's ejb dependency with geromino-ejb due to licence restriction. 
Formatting with Jalopy.

Index: EjbJarXmlPlugin.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/main/java/org/xdoclet/plugin/ejb/descriptor/EjbJarXmlPlugin.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** EjbJarXmlPlugin.java        9 Dec 2004 16:38:39 -0000       1.9
--- EjbJarXmlPlugin.java        28 Apr 2005 07:22:23 -0000      1.10
***************
*** 1,8 ****
  package org.xdoclet.plugin.ejb.descriptor;
  
  import org.generama.JellyTemplateEngine;
- import org.generama.defaults.QDoxPlugin;
  import org.generama.QDoxCapableMetadataProvider;
  import org.generama.WriterMapper;
  import org.xdoclet.plugin.ejb.EjbUtils;
  import org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin;
--- 1,17 ----
+ /*
+  * Copyright (c) 2003
+  * XDoclet Team
+  * All rights reserved.
+  */
  package org.xdoclet.plugin.ejb.descriptor;
  
+ import java.util.Collection;
+ 
  import org.generama.JellyTemplateEngine;
  import org.generama.QDoxCapableMetadataProvider;
  import org.generama.WriterMapper;
+ 
+ import org.generama.defaults.QDoxPlugin;
+ 
  import org.xdoclet.plugin.ejb.EjbUtils;
  import org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin;
***************
*** 10,15 ****
  import org.xdoclet.plugin.ejb.qtags.TagLibrary;
  
- import java.util.Collection;
- 
  /**
   * @author Aslak Hellesøy
--- 19,22 ----
***************
*** 20,47 ****
      private LocalInterfacePlugin localInterfacePlugin;
      private RemoteInterfacePlugin remoteInterfacePlugin;
-     
  
!     public EjbJarXmlPlugin(JellyTemplateEngine jellyTemplateEngine,
!             QDoxCapableMetadataProvider metadataProvider,
!                            WriterMapper writerMapper,
!                            RemoteInterfacePlugin remoteInterfacePlugin,
!                            LocalInterfacePlugin localInterfacePlugin
!                            ) throws ClassNotFoundException {
          super(jellyTemplateEngine, metadataProvider, writerMapper);
- 
          this.localInterfacePlugin = localInterfacePlugin;
          this.remoteInterfacePlugin = remoteInterfacePlugin;
          ejbUtils = new EjbUtils();
- 
          setFilereplace("ejb-jar.xml");
- 
          setMultioutput(false);
- 
          new TagLibrary(metadataProvider);
-         
-     }
- 
-     public boolean shouldGenerate(Object metadata) {
-         return ejbUtils.shouldGenerate(metadata);
      }
  
--- 27,41 ----
      private LocalInterfacePlugin localInterfacePlugin;
      private RemoteInterfacePlugin remoteInterfacePlugin;
  
!     public EjbJarXmlPlugin(JellyTemplateEngine jellyTemplateEngine, 
QDoxCapableMetadataProvider metadataProvider,
!         WriterMapper writerMapper, RemoteInterfacePlugin 
remoteInterfacePlugin,
!         LocalInterfacePlugin localInterfacePlugin) throws 
ClassNotFoundException {
          super(jellyTemplateEngine, metadataProvider, writerMapper);
          this.localInterfacePlugin = localInterfacePlugin;
          this.remoteInterfacePlugin = remoteInterfacePlugin;
          ejbUtils = new EjbUtils();
          setFilereplace("ejb-jar.xml");
          setMultioutput(false);
          new TagLibrary(metadataProvider);
      }
  
***************
*** 57,59 ****
          return remoteInterfacePlugin;
      }
! }
--- 51,57 ----
          return remoteInterfacePlugin;
      }
! 
!     public boolean shouldGenerate(Object metadata) {
!         return ejbUtils.shouldGenerate(metadata);
!     }
! }
\ No newline at end of file



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to