Created a named constant for "META-INF/services" string.
git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@337800 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/xml/utils/ObjectFactory.java b/src/org/apache/xml/utils/ObjectFactory.java
index 3dcf92a..0a92a32 100644
--- a/src/org/apache/xml/utils/ObjectFactory.java
+++ b/src/org/apache/xml/utils/ObjectFactory.java
@@ -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