zongaro     2003/12/11 20:24:20

  Modified:    java/src/org/apache/xml/utils ObjectFactory.java
  Log:
  Created a named constant for "META-INF/services" string.
  
  Revision  Changes    Path
  1.3       +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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ObjectFactory.java        4 Dec 2003 16:45:00 -0000       1.2
  +++ ObjectFactory.java        12 Dec 2003 04:24:20 -0000      1.3
  @@ -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]

Reply via email to