public class NbClassLoader extends URLClassLoader
ClassPath.getClassLoader(...)
Modifier and Type | Field and Description |
---|---|
protected InputOutput |
inout
I/O for classes defined by this classloader.
|
Constructor and Description |
---|
NbClassLoader()
Deprecated.
Misuses classpath.
|
NbClassLoader(FileObject[] roots,
ClassLoader parent,
InputOutput io) |
NbClassLoader(FileSystem[] fileSystems)
Deprecated.
Misuses classpath.
|
NbClassLoader(FileSystem[] fileSystems,
ClassLoader parent)
Deprecated.
Misuses classpath.
|
NbClassLoader(InputOutput io)
Deprecated.
Misuses classpath.
|
Modifier and Type | Method and Description |
---|---|
protected Class |
findClass(String name) |
protected PermissionCollection |
getPermissions(CodeSource cs) |
URL |
getResource(String name)
Create a URL to a resource specified by name.
|
void |
setDefaultPermissions(PermissionCollection defaultPerms)
Sets a PermissionsCollectio which will be used
for ProtectionDomain of newly created classes.
|
addURL, close, definePackage, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected InputOutput inout
null
.public NbClassLoader()
FileSystemCapability#EXECUTE
,
FileSystemCapability#fileSystems
public NbClassLoader(InputOutput io)
io
- an I/O tab in the Output WindowRepository.getFileSystems()
public NbClassLoader(FileObject[] roots, ClassLoader parent, InputOutput io)
public NbClassLoader(FileSystem[] fileSystems)
fileSystems
- file systems to load classes frompublic NbClassLoader(FileSystem[] fileSystems, ClassLoader parent)
fileSystems
- file systems to load classes fromparent
- fallback class loaderpublic URL getResource(String name)
getResource
in class ClassLoader
name
- resource namenull
protected Class findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
public void setDefaultPermissions(PermissionCollection defaultPerms)
defaultPerms
- protected final PermissionCollection getPermissions(CodeSource cs)
getPermissions
in class URLClassLoader
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.