dblevins    2005/07/05 22:04:03

  Modified:    modules/core/src/java/org/openejb/alt/config
                        ValidationTable.java
  Log:

  Moved the getContextClassLoader method to the OpenEJB class so ClasspathUtils 
only contains the classpath modifying methods used by the Loaders and other 
code.
  
  Going to kill the ClasspathUtils and make everyone as the loaders directly to 
modify the classpath, rather than sometimes using the loader and then asking 
ClasspathUtils to guess what loader to use.
  
  Part of the fix for OPENEJB-40, OPENEJB-41 and OPENEJB-42.
  
  Revision  Changes    Path
  1.5       +3 -2      
openejb1/modules/core/src/java/org/openejb/alt/config/ValidationTable.java
  
  Index: ValidationTable.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb1/modules/core/src/java/org/openejb/alt/config/ValidationTable.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ValidationTable.java      19 Jun 2005 22:40:29 -0000      1.4
  +++ ValidationTable.java      6 Jul 2005 02:04:03 -0000       1.5
  @@ -56,6 +56,7 @@
   
   import org.openejb.util.FileUtils;
   import org.openejb.util.JarUtils;
  +import org.openejb.OpenEJB;
   
   /**
    * Beans should be validated, but only when:
  @@ -112,7 +113,7 @@
       private ValidationTable(){
           try{
               // Load the driver
  -            ClassLoader cl = 
org.openejb.util.ClasspathUtils.getContextClassLoader();
  +            ClassLoader cl = OpenEJB.getContextClassLoader();
               Class.forName( jdbcDriver, true, cl);
               // Get a connection
               conn = getConnection();
  
  
  

Reply via email to