Class DestDirClassLoader

java.lang.Object
java.lang.ClassLoader
org.sentrysoftware.jawk.util.DestDirClassLoader

public final class DestDirClassLoader extends ClassLoader
Load classes from a particular directory, disregarding the environmental class-path setting. This is useful when a directory is specified for class files, and it would not make sense to deviate from that directory. So this ClassLoader does practically the same like a URLClassLoader with a "file://.../" URL, except that it does not forward calls to its parent, if it can not find the class its self.

For Jawk, this is used when the -d argument is present.

Author:
Danny Daglas
  • Constructor Details

    • DestDirClassLoader

      public DestDirClassLoader(String dirname)

      Constructor for DestDirClassLoader.

      Parameters:
      dirname - a String object