Class PluginManager.PluginClassLoader

java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.rapidcontext.app.plugin.PluginManager.PluginClassLoader
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
PluginManager

public static class PluginManager.PluginClassLoader extends URLClassLoader
Simple extension of URLClassLoader to be able to add new URL:s after creation.
  • Constructor Details

    • PluginClassLoader

      public PluginClassLoader()
      Creates a new empty class loader.
  • Method Details

    • addJar

      public void addJar(File file) throws IOException
      Adds the specified JAR file to the class loader.
      Parameters:
      file - the JAR file to add
      Throws:
      IOException - if the file couldn't be located