public class DefaultImmutableNClassLoader extends NClassLoaderBase implements NClassLoader
NClassLoader backed by the shared
leaf registry. Fully resolves its classpath entries at construction time
via the base class NClassLoaderBase.build(), after which the
instance is frozen and all mutator operations become no-ops.
Note: the workspace extension model's
createImmutableClassLoader(...) now prefers to return a
DefaultNCompositeClassLoader directly (which doesn't carry the
mutable-classloader fields), but this class is kept for any callers that
construct it explicitly or rely on its type.
baseEntries, children, dependencyFilter, lastDefinitions, lastResolved, loadedShortNameVersions, pendingEntries, repositoryFilter| Modifier | Constructor and Description |
|---|---|
protected |
DefaultImmutableNClassLoader(String name,
ClassLoader parent,
NClasspathEntry[] nodes,
NRepositoryFilter repositoryFilter,
NDependencyFilter dependencyFilter) |
| Modifier and Type | Method and Description |
|---|---|
NDefinition[] |
add(NClasspathEntry... entries) |
NDefinition[] |
add(NDefinition... defs) |
NDefinition[] |
add(NDependency... dependencies) |
NDefinition[] |
add(NId... ids) |
boolean |
add0(NClasspathEntry entry) |
boolean |
add0(NDefinition definition) |
boolean |
add0(NDependency dependency) |
boolean |
add0(NId id) |
void |
addURL(URL url) |
NDefinition[] |
build() |
NClassLoader |
immutable() |
NMutableClassLoader |
mutable() |
NDefinition[] |
rebuild(NDefinition[] desired)
Atomically rebuild the mutable composite so only the desired set of
NDefinitions (and their resolved entries) remain in the delegation
list.
|
void |
remove(NId id)
Remove all children that correspond to the given NId from the
delegation list.
|
addPath0, asClassLoader, baseEntries, buildInternal, contains, definePackage, equals, findResource, findResources, getName, getResource, getResourceAsStream, getResources, getURLs, hashCode, isShortNameVersionAllowed, loadClass, loadClass, loadClassFromChildren, loadedDefinitions, loadResourcesFromChildren, name, search, search, toStringclose, findClass, getPermissions, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersclone, finalize, getClass, notify, notifyAll, wait, wait, waitasClassLoader, contains, getName, getParent, getResource, getResourceAsStream, getResources, loadClass, name, of, of, of, of, ofPreferred, ofPreferred, ofPreferred, ofPreferred, searchprotected DefaultImmutableNClassLoader(String name, ClassLoader parent, NClasspathEntry[] nodes, NRepositoryFilter repositoryFilter, NDependencyFilter dependencyFilter)
public NClassLoader immutable()
immutable in interface NClassLoaderpublic NMutableClassLoader mutable()
mutable in interface NClassLoaderpublic NDefinition[] add(NDefinition... defs)
add in class NClassLoaderBasepublic NDefinition[] add(NClasspathEntry... entries)
add in class NClassLoaderBasepublic NDefinition[] add(NId... ids)
add in class NClassLoaderBasepublic NDefinition[] add(NDependency... dependencies)
add in class NClassLoaderBasepublic boolean add0(NClasspathEntry entry)
add0 in class NClassLoaderBasepublic boolean add0(NDefinition definition)
add0 in class NClassLoaderBasepublic boolean add0(NId id)
add0 in class NClassLoaderBasepublic boolean add0(NDependency dependency)
add0 in class NClassLoaderBasepublic void addURL(URL url)
addURL in class NClassLoaderBasepublic NDefinition[] build()
build in class NClassLoaderBasepublic void remove(NId id)
NClassLoaderBaseremove in class NClassLoaderBasepublic NDefinition[] rebuild(NDefinition[] desired)
NClassLoaderBaserebuild in class NClassLoaderBaseCopyright © 2026 vpc open source initiative. All rights reserved.