zongaro 2003/12/11 20:25:29
Modified: java/src/org/apache/xml/utils Tag: xslt20-compiled
ObjectFactory.java
Log:
Created a named constant for "META-INF/services" string.
Revision Changes Path
No revision
No revision
1.1.2.2 +5 -2
xml-xalan/java/src/org/apache/xml/utils/ObjectFactory.java
Index: ObjectFactory.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/utils/ObjectFactory.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- ObjectFactory.java 4 Dec 2003 20:58:35 -0000 1.1.2.1
+++ ObjectFactory.java 12 Dec 2003 04:25:29 -0000 1.1.2.2
@@ -88,7 +88,10 @@
//
// name of default properties file to look for in JDK's jre/lib directory
- private static final String DEFAULT_PROPERTIES_FILENAME =
"xalan.properties";
+ private static final String DEFAULT_PROPERTIES_FILENAME =
+ "xalan.properties";
+
+ private static final String SERVICES_PATH = "META-INF/services";
/** Set to true for debugging */
private static final boolean DEBUG = false;
@@ -534,7 +537,7 @@
private static String findJarServiceProviderName(String factoryId)
{
SecuritySupport ss = SecuritySupport.getInstance();
- String serviceId = "META-INF/services/" + factoryId;
+ String serviceId = SERVICES_PATH + factoryId;
InputStream is = null;
// First try the Context ClassLoader
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]