commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery BootstrapLoader.java
Date Thu, 18 Jul 2002 15:55:01 GMT
rsitze      2002/07/18 08:55:01

  Modified:    discovery/src/java/org/apache/commons/discovery
                        BootstrapLoader.java
  Log:
  Add resource support to 'system class loader'
  
  Revision  Changes    Path
  1.3       +11 -0     jakarta-commons/discovery/src/java/org/apache/commons/discovery/BootstrapLoader.java
  
  Index: BootstrapLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/BootstrapLoader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BootstrapLoader.java	17 Jul 2002 22:05:33 -0000	1.2
  +++ BootstrapLoader.java	18 Jul 2002 15:55:01 -0000	1.3
  @@ -61,6 +61,9 @@
   
   package org.apache.commons.discovery;
   
  +import java.net.URL;
  +import java.io.InputStream;
  +
   
   /**
    * A wrapper class that gives us a "bootstrap" loader.
  @@ -101,6 +104,14 @@
               throws ClassNotFoundException
           {
               return findSystemClass(className);
  +        }
  +        
  +        public URL getResource(String resName) {
  +            return getSystemResource(resName);
  +        }
  +        
  +        public InputStream getResourceAsStream(String resName) {
  +            return getSystemResourceAsStream(resName);
           }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message