Package jadex.micro

Class MicroClassReader.DummyClassLoader

All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
MicroClassReader

public static class MicroClassReader.DummyClassLoader extends URLClassLoader
  • Field Details

  • Constructor Details

  • Method Details

    • getOriginal

      public ClassLoader getOriginal()
      Get the orig.
      Returns:
      The orig.
    • setOriginal

      public void setOriginal(ClassLoader orig)
      Set the orig.
      Parameters:
      orig - The orig to set.
    • loadClass

      protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
      This method implements a fallback to the library service baseclassloader if a) a library service classloader is used and b) the class was not found in the DummyClassLoader This still limits the scope of loadable classes to avoid accidental loading of non-enhanced user code while allowing Jadex classesto be in the baseclassloader instead of the system classloader.
      Overrides:
      loadClass in class ClassLoader
      Throws:
      ClassNotFoundException
    • toString

      public String toString()
      Overrides:
      toString in class Object