carnold     2005/07/27 09:16:11

  Modified:    src/java/org/apache/log4j/helpers Loader.java
  Log:
  Bug 35893: Add Loader.getResource(String, Class) for log4j 1.1 compatibility
  
  Revision  Changes    Path
  1.23      +13 -4     
logging-log4j/src/java/org/apache/log4j/helpers/Loader.java
  
  Index: Loader.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/helpers/Loader.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Loader.java       20 Nov 2004 12:47:06 -0000      1.22
  +++ Loader.java       27 Jul 2005 16:16:11 -0000      1.23
  @@ -19,8 +19,6 @@
   import java.net.URL;
   
   
  -//import java.awt.Image;
  -//import java.awt.Toolkit;
   
   /**
      Load resources (or images) from various sources.
  @@ -57,8 +55,19 @@
     }
   
     /**
  +   *  Get a resource by delegating to getResource(String).
  +   *  @param resource resource name
  +   *  @param clazz class, ignored.
  +   *  @return URL to resource or null.
  +   *  @deprecated as of 1.2.
  +   */
  +  public static URL getResource(String resource, Class clazz) {
  +      return getResource(resource);
  +  }
  +
  +  /**
        This method will search for <code>resource</code> in different
  -     places. The rearch order is as follows:
  +     places. The search order is as follows:
   
        <ol>
   
  @@ -66,7 +75,7 @@
        class loader under Java2. This step is performed only if the <code>
        skipTCL</code> parameter is false.</li>
   
  -     <p><li>If the aboved step failed, search for <code>resource</code> using
  +     <p><li>If the previous step failed, search for <code>resource</code> 
using
        the class loader that loaded this class (<code>Loader</code>).</li>
   
        <p><li>Try one last time with
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to