CVS: xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb WebSphereSubTask.java,1.10,1.11

Matthias Germann <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Update of /cvsroot/xdoclet/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10133/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb

Modified Files:
	WebSphereSubTask.java 
Log Message:
support for activationSpecJndiName added (XDT-1401). Thanks to Markus Bollig for the patch

Index: WebSphereSubTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb/WebSphereSubTask.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** WebSphereSubTask.java	29 Dec 2004 15:45:14 -0000	1.10
--- WebSphereSubTask.java	14 Aug 2005 09:30:24 -0000	1.11
***************
*** 50,53 ****
--- 50,58 ----
  
      /**
+      * A member for the WebSphere Version
+      */
+     private String  version = WebSphereVersionTypes.VERSION_5_0;
+ 
+     /**
       * A member for the current backend id
       */
***************
*** 79,82 ****
--- 84,98 ----
      }
  
+ 
+     /**
+      * Gets the actual Websphere Version
+      *
+      * @return   The actual Websphere Version
+      */
+     public String getVersion()
+     {
+         return version;
+     }
+ 
      /**
       * Sets the default CMP Datasource
***************
*** 101,104 ****
--- 117,132 ----
      }
  
+ 
+     /**
+      * Sets the actual Websphere Version
+      *
+      * @param version      The new Websphere Version
+      * @ant.not-required   No.
+      */
+     public void setVersion(WebSphereVersionTypes version)
+     {
+         this.version = version.getValue();
+     }
+ 
      /**
       * Called to validate configuration parameters.
***************
*** 146,148 ****
--- 174,198 ----
      {
      }
+ 
+ 
+     /**
+      * @created   06 August 2005
+      */
+     public static class WebSphereVersionTypes extends org.apache.tools.ant.types.EnumeratedAttribute
+     {
+         public final static String VERSION_5_0 = "5.0";
+         public final static String VERSION_5_1 = "5.1";
+         public final static String VERSION_6_0 = "6.0";
+ 
+         /**
+          * Gets the Values attribute of the WebSphereVersionTypes object
+          *
+          * @return   The Values value
+          */
+         public String[] getValues()
+         {
+             return (new String[]{VERSION_5_0, VERSION_5_1, VERSION_6_0});
+         }
+     }
+ 
  }



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.