public class ExportClassLoader extends PreferredClassLoader
PreferredClassLoader
that overrides
getURLs
to return the URL
s of the provided export
codebase. getURLs
is called by the RMI subsystem in order to
annotate objects leaving the virtual machine.Modifier and Type | Field and Description |
---|---|
private URL[] |
exportURLs
Cached value of the provided export codebase
URL s |
private Uuid |
id
Id field used to make toString() unique
|
Constructor and Description |
---|
ExportClassLoader(URL[] importURLs,
URL[] exportURLs,
ClassLoader parent)
Trivial constructor that calls
super(importURLs, parent, urlsToPath(exportURLs), false);
and assigns
exportURLs to an internal field. |
Modifier and Type | Method and Description |
---|---|
URL[] |
getURLs() |
String |
toString()
Returns a string representation of this class loader.
|
private static String |
urlsToPath(URL[] urls)
Utility method that converts a
URL[] into a corresponding,
space-separated string with the same array elements. |
definePackage, getClassAnnotation, getPermissions, getResource, isPreferredResource, loadClass, newInstance
addURL, close, definePackage, findClass, findResource, findResources, getResourceAsStream, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
private final URL[] exportURLs
URL
sprivate final Uuid id
public ExportClassLoader(URL[] importURLs, URL[] exportURLs, ClassLoader parent)
super(importURLs, parent, urlsToPath(exportURLs), false);and assigns
exportURLs
to an internal field.public URL[] getURLs()
getURLs
in class URLClassLoader
public String toString()
PreferredClassLoader
toString
in class PreferredClassLoader
Copyright 2007-2016, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.