public interface ClassLoaderRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all classloaders.
|
java.lang.ClassLoader |
getClassLoader(java.net.URI id)
Returns the classloader registered with the supplied id, or null if none is registered.
|
void |
register(java.net.URI id,
java.lang.ClassLoader classLoader)
Register a ClassLoader with the runtime.
|
java.lang.ClassLoader |
unregister(java.net.URI id)
Unregister the specified classloader from the system.
|
void register(java.net.URI id,
java.lang.ClassLoader classLoader)
id - a unique id for the classloaderclassLoader - the classloader to registerjava.lang.ClassLoader unregister(java.net.URI id)
id - the id for the classloaderjava.lang.ClassLoader getClassLoader(java.net.URI id)
id - the id for the classloadervoid close()