avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info Type.java
Date Sun, 15 Sep 2002 00:31:52 GMT
mcconnell    2002/09/14 17:31:52

  Modified:    meta/src/java/org/apache/excalibur/meta/info Type.java
  Log:
  Enhanced service request accesors.
  
  Revision  Changes    Path
  1.4       +20 -1     jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/Type.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Type.java	13 Sep 2002 20:31:22 -0000	1.3
  +++ Type.java	15 Sep 2002 00:31:52 -0000	1.4
  @@ -178,6 +178,25 @@
       }
   
       /**
  +     * Retrieve a service with a particular reference.
  +     *
  +     * @param classname the service classname
  +     * @return the service descriptor or null if it does not exist
  +     */
  +    public ServiceDescriptor getService( final ReferenceDescriptor reference )
  +    {
  +        for( int i = 0; i < m_services.length; i++ )
  +        {
  +            final ServiceDescriptor service = m_services[i];
  +            if( service.getReference().matches( reference ) )
  +            {
  +                return service;
  +            }
  +        }
  +        return null;
  +    }
  +
  +    /**
        * Retrieve a service with a particular classname.
        *
        * @param classname the service classname
  
  
  

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