commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery Service.java Discovery.java
Date Sat, 27 Jul 2002 21:13:53 GMT
rsitze      2002/07/27 14:13:53

  Modified:    discovery/src/java/org/apache/commons/discovery Service.java
                        Discovery.java
  Log:
  Propogate group context to services... they will need it for their discoveries.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons/discovery/src/java/org/apache/commons/discovery/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/Service.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Service.java	9 Jul 2002 18:03:23 -0000	1.1
  +++ Service.java	27 Jul 2002 21:13:52 -0000	1.2
  @@ -75,7 +75,7 @@
    * @version $Revision$ $Date$
    */
   public interface Service {
  -    public void init(Properties properties);
  +    public void init(String groupContext, Properties properties);
   
       public void release();
   }
  
  
  
  1.4       +19 -6     jakarta-commons/discovery/src/java/org/apache/commons/discovery/Discovery.java
  
  Index: Discovery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/Discovery.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Discovery.java	27 Jul 2002 18:49:59 -0000	1.3
  +++ Discovery.java	27 Jul 2002 21:13:53 -0000	1.4
  @@ -86,7 +86,24 @@
    * <p>Discovery provides the <code>find</code> methods for locating and
    * instantiating an implementation of a service (SPI).  Each form of
    * <code>find</code> varies slightly, but they all perform the same basic
  - * function.  The Discovery <code>find</code> methods proceed as follows:
  + * function.
  + * 
  + * The simplest <code>find</code> methods are intended for direct use by
  + * components looking for a service.  If you are not sure which finder(s)
  + * to use, you can narrow your search to one of these:
  + * <ul>
  + * <li>static Object find(Class spi);</li>
  + * <li>static Object find(Class spi, Properties properties);</li>
  + * <li>static Object find(Class spi, String defaultImplName);</li>
  + * <li>static Object find(Class spi, Properties properties, String defaultImplName);</li>
  + * <li>static Object find(Class spi, String propertiesFileName, String defaultImplName);</li>
  + * <li>static Object find(String groupContext, Class spi,
  + *                        Properties properties, String defaultImplName);</li>
  + * <li>static Object find(String groupContext, Class spi,
  + *                        String propertiesFileName, String defaultImplName);</li>
  + * </ul>
  + * 
  + * The <code>Discovery.find</code> methods proceed as follows:
    * </p>
    * <ul>
    *   <p><li>
  @@ -204,10 +221,6 @@
    * </ul>
    * </p>
    * 
  - * <p>
  - * Other concepts
  - * </p>
  - * 
    * <p><strong>IMPLEMENTATION NOTE</strong> - This implementation is heavily
    * based on the SAXParserFactory and DocumentBuilderFactory implementations
    * (corresponding to the JAXP pluggability APIs) found in Apache Xerces.
  @@ -712,7 +725,7 @@
                   }
                   
                   if (service instanceof Service) {
  -                    ((Service)service).init(properties);
  +                    ((Service)service).init(classFinder.getGroupContext(), properties);
                   }
               }
           }
  
  
  

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


Mime
View raw message