Package com.seeq.link.agent
Class ClassPathUtilities
java.lang.Object
com.seeq.link.agent.ClassPathUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToClassPath
(URLClassLoader urlClassLoader, URL url) Adds a URL to an existing classloader.getEntriesFromClasspathFile
(File classPathFile, BiFunction<String, String, String> entryResolver) getJarsInFolder
(File folder)
-
Constructor Details
-
ClassPathUtilities
public ClassPathUtilities()
-
-
Method Details
-
addToClassPath
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 affecturl
- url of classpath to be added- Throws:
Exception
- various exceptions can occur
-
getJarsInFolder
- Throws:
Exception
-
getEntriesFromClasspathFile
public static List<URL> getEntriesFromClasspathFile(File classPathFile, BiFunction<String, String, throws ExceptionString> entryResolver) - Throws:
Exception
-