Return-Path:
Delivered-To: apmail-jakarta-commons-dev-archive@apache.org
Received: (qmail 49924 invoked from network); 27 Jul 2002 21:14:03 -0000
Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131)
by daedalus.apache.org with SMTP; 27 Jul 2002 21:14:02 -0000
Received: (qmail 678 invoked by uid 97); 27 Jul 2002 21:14:22 -0000
Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org
Received: (qmail 615 invoked by uid 97); 27 Jul 2002 21:14:21 -0000
Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe:
List-Subscribe:
List-Help:
List-Post:
List-Id: "Jakarta Commons Developers List"
Reply-To: "Jakarta Commons Developers List"
Delivered-To: mailing list commons-dev@jakarta.apache.org
Received: (qmail 604 invoked by uid 97); 27 Jul 2002 21:14:20 -0000
X-Antivirus: nagoya (v4198 created Apr 24 2002)
Date: 27 Jul 2002 21:13:53 -0000
Message-ID: <20020727211353.45923.qmail@icarus.apache.org>
From: rsitze@apache.org
To: jakarta-commons-cvs@apache.org
Subject: cvs commit:
jakarta-commons/discovery/src/java/org/apache/commons/discovery Service.java
Discovery.java
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
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 @@
* Discovery provides the find
methods for locating and
* instantiating an implementation of a service (SPI). Each form of
* find
varies slightly, but they all perform the same basic
- * function. The Discovery find
methods proceed as follows:
+ * function.
+ *
+ * The simplest find
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:
+ *
+ * - static Object find(Class spi);
+ * - static Object find(Class spi, Properties properties);
+ * - static Object find(Class spi, String defaultImplName);
+ * - static Object find(Class spi, Properties properties, String defaultImplName);
+ * - static Object find(Class spi, String propertiesFileName, String defaultImplName);
+ * - static Object find(String groupContext, Class spi,
+ * Properties properties, String defaultImplName);
+ * - static Object find(String groupContext, Class spi,
+ * String propertiesFileName, String defaultImplName);
+ *
+ *
+ * The Discovery.find
methods proceed as follows:
*
*
*
*
- *
- * Other concepts
- *
- *
* IMPLEMENTATION NOTE - 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:
For additional commands, e-mail: