MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / loadJAR

Method loadJAR

src/utils/PluginLoader.java:168–180  ·  view source on GitHub ↗

Attempts to load the given jar into the class path @param jar Full path to a .jar file @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 filename di

(String jar)

Source from the content-addressed store, hash-verified

166 * @throws InvocationTargetException if there is an issue loading the jar
167 */
168 public static void loadJAR(String jar) throws IOException, SecurityException,
169 IllegalArgumentException, NoSuchMethodException, IllegalAccessException,
170 InvocationTargetException {
171 if (!jar.toLowerCase().endsWith(".jar")) {
172 throw new IllegalArgumentException(
173 "File specified did not end with .jar");
174 }
175 File file = new File(jar);
176 if (!file.exists()) {
177 throw new FileNotFoundException(jar);
178 }
179 addFile(file);
180 }
181
182 /**
183 * Recursively traverses a directory searching for files ending with .jar and

Callers 15

loadJarMethod · 0.95
loadJarDoesNotExistMethod · 0.95
loadJarDoesNotAJarMethod · 0.95
loadJarNullMethod · 0.95
loadJarEmptyMethod · 0.95
loadSpecificPluginMethod · 0.95
loadHttpRpcPluginMethod · 0.95
beforeMethod · 0.95
loadHttpRpcPluginsMethod · 0.95
loadRpcPluginMethod · 0.95

Calls 1

addFileMethod · 0.95

Tested by 15

loadJarMethod · 0.76
loadJarDoesNotExistMethod · 0.76
loadJarDoesNotAJarMethod · 0.76
loadJarNullMethod · 0.76
loadJarEmptyMethod · 0.76
loadSpecificPluginMethod · 0.76
loadHttpRpcPluginMethod · 0.76
beforeMethod · 0.76
loadHttpRpcPluginsMethod · 0.76
loadRpcPluginMethod · 0.76