Class ClassPathUtilities

java.lang.Object
com.seeq.link.agent.ClassPathUtilities

public class ClassPathUtilities extends Object
  • Constructor Details

    • ClassPathUtilities

      public ClassPathUtilities()
  • Method Details

    • addToClassPath

      public static void addToClassPath(URLClassLoader urlClassLoader, URL url) throws Exception
      Adds a URL to an existing classloader. Taken from http://stackoverflow.com/questions/7884393/can-a-directory-be-added-to-the-class-path-at-runtime
      Parameters:
      urlClassLoader - classloader to affect
      url - url of classpath to be added
      Throws:
      Exception - various exceptions can occur
    • getJarsInFolder

      public static List<URL> getJarsInFolder(File folder) throws Exception
      Throws:
      Exception
    • getEntriesFromClasspathFile

      public static List<URL> getEntriesFromClasspathFile(File classPathFile, BiFunction<String,String,String> entryResolver) throws Exception
      Throws:
      Exception