public class ClassLoaderUtil extends Object
W A R N I N G
This class uses undocumented, unpublished, private data structures inside java.net.URLClassLoader and sun.misc.URLClassPath. Use with extreme caution.
Constructor and Description |
---|
ClassLoaderUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
releaseLoader(URLClassLoader classLoader)
Releases resources held by the URLClassLoader.
|
static IOException[] |
releaseLoader(URLClassLoader classLoader,
Vector<String> jarsClosed)
Releases resources held by the URLClassLoader.
|
public static void releaseLoader(URLClassLoader classLoader)
classLoader
- the instance of URLClassLoader (or a subclass)public static IOException[] releaseLoader(URLClassLoader classLoader, Vector<String> jarsClosed)
Any errors are logged.
classLoader
- the instance of URLClassLoader (or a subclass)jarsClosed
- a Vector of Strings that will contain the names of jars
successfully closed; can be null if the caller does not need the information returnedCopyright © 2006–2018 TinyGroup. All rights reserved.