avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vin...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/common AltrmiReplyConstants.java
Date Sun, 24 Nov 2002 07:16:34 GMT
vinayc      2002/11/23 23:16:34

  Modified:    altrmi/src/java/org/apache/excalibur/altrmi/server/impl/adapters
                        InvocationHandlerAdapter.java
               altrmi/src/java/org/apache/excalibur/altrmi/client/impl
                        DynamicInvoker.java
               altrmi/src/java/org/apache/excalibur/altrmi/common
                        AltrmiReplyConstants.java
  Log:
  Tidying up stubless invocation within altrmi
  
  Revision  Changes    Path
  1.12      +3 -2      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/adapters/InvocationHandlerAdapter.java
  
  Index: InvocationHandlerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/adapters/InvocationHandlerAdapter.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- InvocationHandlerAdapter.java	1 Nov 2002 16:35:42 -0000	1.11
  +++ InvocationHandlerAdapter.java	24 Nov 2002 07:16:34 -0000	1.12
  @@ -485,7 +485,8 @@
   
           if( !isPublished( publishedThing ) )
           {
  -            return new NotPublishedReply();
  +            //Should it throw an exception back?
  +            return new  ListMethodsReply(new String[0]);
           }
   
           DefaultMethodInvocationHandler methodInvocationHandler =
  
  
  
  1.3       +2 -2      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/DynamicInvoker.java
  
  Index: DynamicInvoker.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/DynamicInvoker.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DynamicInvoker.java	5 Nov 2002 07:19:46 -0000	1.2
  +++ DynamicInvoker.java	24 Nov 2002 07:16:34 -0000	1.3
  @@ -156,7 +156,7 @@
           {
               return ((ListMethodsReply) ar).getListOfMethods();
           }
  -        else
  +        else//shld never occur
           {
               return new String[0];
           }
  @@ -218,7 +218,7 @@
               if (c == ' ')
               {
                   buf.deleteCharAt(i);
  -                i--; // acct for the deletion
  +                i--; // account for the deletion
               }
               if (c == ',')
               {
  
  
  
  1.4       +6 -5      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/common/AltrmiReplyConstants.java
  
  Index: AltrmiReplyConstants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/common/AltrmiReplyConstants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AltrmiReplyConstants.java	1 Nov 2002 16:35:42 -0000	1.3
  +++ AltrmiReplyConstants.java	24 Nov 2002 07:16:34 -0000	1.4
  @@ -65,6 +65,10 @@
        */
       int SAMEVMREPLY = 11;
   
  +	/** 
  +     * The list of remote methods within the published Object
  +     */
  +    int LISTMETHODSREPLY=12;
   
       // 'bad' replies after 100
   
  @@ -96,8 +100,5 @@
        * The proxy class could not be retrieved.
        */
       int CLASSRETRIEVALFAILEDREPLY = 107;
  -    /** 
  -     * The list of remote methods within the published Object
  -     */
  -    int LISTMETHODSREPLY=108;
  +   
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message