Class DynamicClassLoader

java.lang.Object
org.eclipse.lemminx.customservice.synapse.dataService.DynamicClassLoader

public class DynamicClassLoader extends Object
  • Constructor Details

    • DynamicClassLoader

      public DynamicClassLoader()
  • Method Details

    • updateClassLoader

      public static void updateClassLoader(File jarDirectory) throws Exception
      Add DB drivers in a folder to the class loader
      Parameters:
      jarDirectory - path of the DB driver jars folder
      Throws:
      Exception
    • updateJarInClassLoader

      public static void updateJarInClassLoader(File jarFile, boolean addJar) throws Exception
      Add or remove a DB driver from the class path
      Parameters:
      jarFile - path of the DB driver jar
      addJar - whether the jar should be added or removed
      Throws:
      Exception
    • getClassLoader

      public static URLClassLoader getClassLoader()