MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / addFile

Method addFile

src/utils/PluginLoader.java:258–262  ·  view source on GitHub ↗

Attempts to add the given file object to the class loader @param f The JAR file object to load @throws IOException if the file does not exist or cannot be accessed @throws SecurityException if there is a security manager present and the operation is denied @throws IllegalArgumentException if the fil

(File f)

Source from the content-addressed store, hash-verified

256 * @throws InvocationTargetException if there is an issue loading the jar
257 */
258 private static void addFile(File f) throws IOException, SecurityException,
259 IllegalArgumentException, NoSuchMethodException, IllegalAccessException,
260 InvocationTargetException {
261 addURL(f.toURI().toURL());
262 }
263
264 /**
265 * Attempts to add the given file/URL to the class loader

Callers 2

loadJARMethod · 0.95
loadJARsMethod · 0.95

Calls 1

addURLMethod · 0.95

Tested by

no test coverage detected