Class ClassLoaderUtil
java.lang.Object
org.nuiton.util.ClassLoaderUtil
A usefull class with method for ClassLoader
- Author:
- Tony Chemit - chemit@codelutin.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URL[]getDeepURLs(URLClassLoader loader) Returns the all urls to be used in aURLClassLoader.static URL[]getURLs(URLClassLoader classLoader) Recupere la liste des urls d'unURLClassLoader.static voidprintLoader(ClassLoader loader)
-
Constructor Details
-
ClassLoaderUtil
public ClassLoaderUtil()
-
-
Method Details
-
getDeepURLs
Returns the all urls to be used in aURLClassLoader. If classloader has only one url and the url is a jar, try to load in manifest class-path.- Parameters:
loader- the classloader (if null will use system one)- Returns:
- all the url found in the classloader
-
getURLs
Recupere la liste des urls d'unURLClassLoader. Note : Un cas particulier est positionné pour JBoss qui utilise la method getAllURLs.- Parameters:
classLoader- le class loader a scanner- Returns:
- les urls du classloade.
-
printLoader
-