public final class RMIClassLoader
extends java.lang.ClassLoader
RMIRegistry
can be used to
load classes located on remote codebases.Modifier and Type | Method and Description |
---|---|
void |
addCodebase(java.net.URL url)
Adds a codebase where code of the local application can be loaded.
|
void |
clearCodebasesSet()
Remove all statically known codebases.
|
java.util.Set<java.net.URL> |
getCodebasesSet()
Gets the set of currently active codebases.
|
void |
removeCodebase(java.net.URL url)
Remove a codebase that is statically loaded in this RMI environment (A
codebase that contains the code of the local application).
|
void |
removeCodebases(java.util.Collection<java.net.URL> url)
Remove a codebase that is statically loaded in this RMI environment (A
codebase that contains the code of the local application).
|
void |
removeCodebases(java.net.URL... urls)
Remove a codebase that is statically loaded in this RMI environment (A
codebase that contains the code of the local application).
|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public void addCodebase(java.net.URL url)
ClassLoaderFactory
used on RMIRegistry
initialization. See
the RMIRegistry.Builder.setClassLoaderFactory(ClassLoaderFactory)
method.url
- the codebase urlpublic void removeCodebase(java.net.URL url)
url
- the url of the codebase to removepublic void removeCodebases(java.util.Collection<java.net.URL> url)
url
- the url of the codebase to removepublic void removeCodebases(java.net.URL... urls)
urls
- the urls of the code-bases to removepublic java.util.Set<java.net.URL> getCodebasesSet()
public void clearCodebasesSet()