dlr         01/06/20 01:49:29

  Modified:    src/java/org/apache/turbine/services
                        BaseUnicastRemoteService.java
  Log:
  Implemented getCategory() instance method.
  
  Jason: In response to your note two commits ago, composition of a
  BaseUnicastRemoteObject would require implementing a wider
  interface--for RMI ease of use--than copying what's in BaseService
  does.  Using a BaseService instance for composition might work, but
  would require making BaseService non-abstract (which I suppose I am
  open to, considering that BaseService has a protected ctor).  Just
  copying the implementation of BaseService--like should be done
  currently--will also suffice (though it does create two places to
  maintain the same code, which is always a bummer).
  
  Revision  Changes    Path
  1.7       +1 -1      
jakarta-turbine/src/java/org/apache/turbine/services/BaseUnicastRemoteService.java
  
  Index: BaseUnicastRemoteService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/BaseUnicastRemoteService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BaseUnicastRemoteService.java     2001/06/20 08:35:25     1.6
  +++ BaseUnicastRemoteService.java     2001/06/20 08:49:26     1.7
  @@ -139,6 +139,6 @@
   
       public Category getCategory()
       {
  -        return null;
  +        return getServiceBroker().getCategory();
       }        
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to