dain        2004/11/25 16:51:50

  Modified:    modules/core/src/java/org/openejb/util SafeToolkit.java
  Log:

  Configuration class loader is now exposed as the configurationClassLoader
  
  Revision  Changes    Path
  1.2       +3 -3      
openejb/modules/core/src/java/org/openejb/util/SafeToolkit.java
  
  Index: SafeToolkit.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/util/SafeToolkit.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SafeToolkit.java  1 Mar 2004 07:14:43 -0000       1.1
  +++ SafeToolkit.java  25 Nov 2004 21:51:50 -0000      1.2
  @@ -100,7 +100,7 @@
        * @throws OpenEJBExcption if the class cannot be found.
        */
       public Class forName(String className, String codebase) throws 
OpenEJBException{
  -        //ClassLoader cl = Class.class.getClassLoader();
  +        //ClassLoader cl = Class.class.getConfigurationClassLoader();
           ClassLoader cl = getContextClassLoader();
   
           // If the codebase is present, then the classloader variable cl
  @@ -245,7 +245,7 @@
                        urlCodebase[0] = new java.net.URL("file",null,codebase);
                           // make sure everything works if we were not loaded 
by the system class loader
                        cl = new java.net.URLClassLoader(urlCodebase, 
SafeToolkit.class.getClassLoader() );
  -                        //cl = SafeToolkit.class.getClassLoader();
  +                        //cl = 
SafeToolkit.class.getConfigurationClassLoader();
                        codebases.put(codebase, cl);
                    } catch (java.net.MalformedURLException mue) {
                        throw new OpenEJBException( messages.format ( "cl0001", 
codebase, mue.getMessage() ) );
  
  
  

Reply via email to