You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rs...@apache.org on 2002/08/13 00:09:37 UTC

cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery/load ClassLoaderUtils.java

rsitze      2002/08/12 15:09:37

  Modified:    discovery/src/java/org/apache/commons/discovery/load
                        ClassLoaderUtils.java
  Log:
  Removed deleted code
  
  Revision  Changes    Path
  1.4       +0 -30     jakarta-commons/discovery/src/java/org/apache/commons/discovery/load/ClassLoaderUtils.java
  
  Index: ClassLoaderUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/load/ClassLoaderUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ClassLoaderUtils.java	12 Aug 2002 22:06:38 -0000	1.3
  +++ ClassLoaderUtils.java	12 Aug 2002 22:09:37 -0000	1.4
  @@ -221,18 +221,6 @@
           return getResourceAsStream(resourceName, loaders, loaders.length);
       }
       
  -//    /**
  -//     * Load the resource resourceName using the
  -//     * class loaders associated with the SPI's context.
  -//     * 
  -//     * @param resourceName The name of the resource to load.
  -//     */
  -//    public static InputStream getResourceAsStream(String resourceName, SPSpec spiContext)
  -//        throws DiscoveryException
  -//    {
  -//        return getResourceAsStream(resourceName, spiContext.getClassLoaders());
  -//    }
  -
       /**
        * Load the resource <code>resourceName</code>.
        * Try each classloader in succession,
  @@ -282,24 +270,6 @@
           return getResourceAsStream(packageName, resourceName, loaders, loaders.length);
       }
       
  -    /**
  -     * Load the resource resourceName using the
  -     * class loaders associated with the SPI's context.
  -     * If all fail and <code>resouceName</code> is not absolute
  -     * (doesn't start with '/' character), then retry with
  -     * <code>packageName/resourceName</code> after changing all
  -     * '.' to '/'.
  -     * 
  -     * @param resourceName The name of the resource to load.
  -     */
  -//    public static InputStream getResourceAsStream(String packageName,
  -//                                                  String resourceName,
  -//                                                  SPSpec spiContext)
  -//        throws DiscoveryException
  -//    {
  -//        return getResourceAsStream(packageName, resourceName, spiContext.getClassLoaders());
  -//    }
  -
       
       /**
        * Would <code>thisClassLoader</code> use <code>classLoader</code>?
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>