public class ClassLoaderUtil extends Object
Constructor and Description |
---|
ClassLoaderUtil() |
Modifier and Type | Method and Description |
---|---|
static URL[] |
getDeepURLs(URLClassLoader loader)
Returns the all urls to be used in a
URLClassLoader . |
static URL[] |
getURLs(URLClassLoader classLoader)
Recupere la liste des urls d'un
URLClassLoader . |
static void |
printLoader(ClassLoader loader) |
public static URL[] getDeepURLs(URLClassLoader loader)
URLClassLoader
.
If classloader has only one url and the url is a jar, try to load in
manifest class-path.loader
- the classloader (if null will use system one)public static URL[] getURLs(URLClassLoader classLoader)
URLClassLoader
.
Note : Un cas particulier est positionné pour JBoss qui utilise
la method getAllURLs.classLoader
- le class loader a scannerpublic static void printLoader(ClassLoader loader)
Copyright © 2004–2020 CodeLutin. All rights reserved.