public final class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
Utils()
"Static" class cannot be instantiated
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addPath(String path)
Adds a path in the classPath.
|
static void |
loadFileInClassPath(File file)
Adds a file in a classpath.
|
@Requirement(reqId="DOI_ARCHI_040", reqName="Chargement des plugins") public static void addPath(String path) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, MalformedURLException
path - pathIllegalArgumentException - - if path is nullNoSuchMethodException - - if a matching method is not found.IllegalAccessException - - if this Method object is enforcing Java
language access control and the underlying method is inaccessible.InvocationTargetException - - if the underlying method throws an
exception.MalformedURLException - - If a protocol handler for the URL could
not be found, or if some other error occurred while constructing the URLpublic static void loadFileInClassPath(File file) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, MalformedURLException
file - fileNoSuchMethodException - - if a matching method is not found.IllegalAccessException - - if this Method object is enforcing Java
language access control and the underlying method is inaccessible.InvocationTargetException - - if the underlying method throws an
exception.MalformedURLException - - If a protocol handler for the URL could
not be found, or if some other error occurred while constructing the URLCopyright © 2017–2020 CNES. All rights reserved.