org.objectweb.medor.optim.lib

Class DirsCompileClassLoader


public class DirsCompileClassLoader
extends ClassLoader

A class loader that always checks a list of special directories on the hard disk to load classes or Java source files when compilation if needed.

The principal method loadClass(name,resolve) is coded so that name represents a Class file name or a Java source file. In the second case, the Java source file is compiled and loaded. The class loaded are used in the current application, so loading the class referenced by these classes is delegated to the class system loader if they are already loaded.

Constructor Summary

DirsCompileClassLoader(HashSet classpaths)

Method Summary

Class
loadClass(String name, boolean resolve)

Constructor Details

DirsCompileClassLoader

public DirsCompileClassLoader(HashSet classpaths)

Method Details

loadClass

public Class loadClass(String name,
                       boolean resolve)
            throws ClassNotFoundException