dblevins    2005/07/04 20:59:43

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

  Some javadoc describing the consumers of the getLoader method
  
  Revision  Changes    Path
  1.10      +14 -1     
openejb1/modules/core/src/java/org/openejb/util/ClasspathUtils.java
  
  Index: ClasspathUtils.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb1/modules/core/src/java/org/openejb/util/ClasspathUtils.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ClasspathUtils.java       19 Jun 2005 22:40:33 -0000      1.9
  +++ ClasspathUtils.java       5 Jul 2005 00:59:42 -0000       1.10
  @@ -88,6 +88,19 @@
           getLoader(loaderName).addJarToPath(jar);
       }
   
  +    /**
  +     * Used to shove all jar files in a directory into the classloader
  +     * This method resolves the directory relative to openejb.home and
  +     * instpects the name of the classloader to figure out which loader
  +     * to call.
  +     *
  +     * This method i used only by the deploy tool, validator, and testsuite
  +     * to add openejb.home/lib and openejb.home/dist to the classpath.
  +     *
  +     * @see #getLoader() 
  +     * @param dir
  +     * @throws Exception
  +     */
       public static void addJarsToPath(String dir) throws Exception {
           addJarsToPath(FileUtils.getHome().getDirectory(dir));
       }
  
  
  

Reply via email to