avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl AbstractFactory.java
Date Sun, 12 Jan 2003 12:37:18 GMT
hammant     2003/01/12 04:37:18

  Modified:    altrmi/src/java/org/apache/excalibur/altrmi/client
                        InterfaceLookup.java
               altrmi/src/java/org/apache/excalibur/altrmi/client/impl
                        AbstractFactory.java
  Log:
  Support hasService() - as per Serviceable
  
  Revision  Changes    Path
  1.3       +8 -1      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/InterfaceLookup.java
  
  Index: InterfaceLookup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/InterfaceLookup.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InterfaceLookup.java	5 Jan 2003 23:24:08 -0000	1.2
  +++ InterfaceLookup.java	12 Jan 2003 12:37:18 -0000	1.3
  @@ -73,4 +73,11 @@
        *
        */
       void close();
  +
  +    /**
  +     * Has a service.
  +     * @param publishedServiceName
  +     * @return
  +     */
  +    boolean hasService(String publishedServiceName);
   }
  
  
  
  1.2       +20 -1     jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/AbstractFactory.java
  
  Index: AbstractFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/AbstractFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractFactory.java	9 Jan 2003 22:55:28 -0000	1.1
  +++ AbstractFactory.java	12 Jan 2003 12:37:18 -0000	1.2
  @@ -359,6 +359,25 @@
   
   
       /**
  +     * Is the service published.
  +     * @param publishedServiceName
  +     * @return
  +     */
  +    public boolean hasService(String publishedServiceName)
  +    {
  +        String[] services = list();
  +        for (int i = 0; i < services.length; i++)
  +        {
  +            String service = services[i];
  +            if (service.equals(publishedServiceName)) {
  +                return true;
  +            }
  +        }
  +        return false;
  +    }
  +
  +
  +    /**
        * Wraps the reference to the remote obj within the FacadeRefHolder obj.
        * @param obj
        * @param objectName
  
  
  

--
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