Closeable
, AutoCloseable
public class NbClassLoader extends URLClassLoader
ClassPath.getClassLoader(...)
Modifier and Type | Field | Description |
---|---|---|
protected org.openide.windows.InputOutput |
inout |
I/O for classes defined by this classloader.
|
Constructor | Description |
---|---|
NbClassLoader() |
Deprecated.
Misuses classpath.
|
NbClassLoader(org.openide.filesystems.FileObject[] roots,
ClassLoader parent,
org.openide.windows.InputOutput io) |
|
NbClassLoader(org.openide.filesystems.FileSystem[] fileSystems) |
Deprecated.
Misuses classpath.
|
NbClassLoader(org.openide.filesystems.FileSystem[] fileSystems,
ClassLoader parent) |
Deprecated.
Misuses classpath.
|
NbClassLoader(org.openide.windows.InputOutput io) |
Deprecated.
Misuses classpath.
|
Modifier and Type | Method | 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.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defineClass, defineClass
addURL, close, definePackage, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
protected org.openide.windows.InputOutput inout
null
.public NbClassLoader()
FileSystemCapability#EXECUTE
,
FileSystemCapability#fileSystems
public NbClassLoader(org.openide.windows.InputOutput io)
io
- an I/O tab in the Output WindowRepository.getFileSystems()
public NbClassLoader(org.openide.filesystems.FileObject[] roots, ClassLoader parent, org.openide.windows.InputOutput io)
public NbClassLoader(org.openide.filesystems.FileSystem[] fileSystems)
fileSystems
- file systems to load classes frompublic NbClassLoader(org.openide.filesystems.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 April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.