geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r581558 - in /geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler: Handlers.java LongHandler.java
Date Wed, 03 Oct 2007 10:24:53 GMT
Author: gnodet
Date: Wed Oct  3 03:24:52 2007
New Revision: 581558

URL: http://svn.apache.org/viewvc?rev=581558&view=rev
Log:
Add long parameter handler

Added:
    geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/LongHandler.java
      - copied, changed from r581156, geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/IntegerHandler.java
Modified:
    geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/Handlers.java

Modified: geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/Handlers.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/Handlers.java?rev=581558&r1=581557&r2=581558&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/Handlers.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/Handlers.java
Wed Oct  3 03:24:52 2007
@@ -119,6 +119,8 @@
         register(URI.class, UriHandler.class);
         register(Integer.class, IntegerHandler.class);
         register(int.class, IntegerHandler.class);
+        register(Long.class, LongHandler.class);
+        register(long.class, LongHandler.class);
         register(Double.class, DoubleHandler.class);
         register(double.class, DoubleHandler.class);
         register(String.class, StringHandler.class);

Copied: geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/LongHandler.java
(from r581156, geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/IntegerHandler.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/LongHandler.java?p2=geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/LongHandler.java&p1=geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/IntegerHandler.java&r1=581156&r2=581558&rev=581558&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/IntegerHandler.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/handler/LongHandler.java
Wed Oct  3 03:24:52 2007
@@ -28,10 +28,10 @@
  *
  * @version $Rev$ $Date$
  */
-public class IntegerHandler
-    extends Handler<Integer>
+public class LongHandler
+    extends Handler<Long>
 {
-    public IntegerHandler(final Descriptor desc, final Setter<? super Integer> setter)
{
+    public LongHandler(final Descriptor desc, final Setter<? super Long> setter) {
         super(desc, setter);
     }
 
@@ -40,9 +40,9 @@
         assert params != null;
 
         String token = params.get(0);
-        int value = Integer.parseInt(token);
+        long value = Long.parseLong(token);
         setter.set(value);
-        
+
         return 1;
     }
 
@@ -50,4 +50,4 @@
     public String getDefaultMetaVariable() {
         return "N";
     }
-}
+}
\ No newline at end of file



Mime
View raw message