Class EmbedderClassLoader

All Implemented Interfaces:
Closeable, AutoCloseable

public class EmbedderClassLoader extends URLClassLoader
EmbedderClassLoader is a URLClassLoader with a specified list of classpath elements. It also provides a utility method newInstance(Class, String) to instantiate generic types.
  • Constructor Details

    • EmbedderClassLoader

      public EmbedderClassLoader(ClassLoader parent)
    • EmbedderClassLoader

      public EmbedderClassLoader(List<String> classpathElements)
    • EmbedderClassLoader

      public EmbedderClassLoader(List<String> classpathElements, ClassLoader parent)
  • Method Details

    • newInstance

      public <T> T newInstance(Class<T> type, String className)
    • isAbstract

      public boolean isAbstract(String className)
    • toString

      public String toString()
      toString in class Object