Class NbClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.openide.execution.NbClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
A class loader which is capable of loading classes from the Repository.
XXX the only useful thing this class does is effectively make
ExecutionEngine.createPermissions public! Consider deprecating this class...
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.openide.windows.InputOutput
I/O for classes defined by this classloader. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class
protected final PermissionCollection
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.Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
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
-
Field Details
-
inout
protected org.openide.windows.InputOutput inoutI/O for classes defined by this classloader. May benull
.
-
-
Constructor Details
-
NbClassLoader
Deprecated.Misuses classpath.Create a new class loader retrieving classes from the core IDE as well as the Repository. -
NbClassLoader
Deprecated.Misuses classpath.Create a new class loader retrieving classes from the core IDE as well as the Repository, and redirecting system I/O.- Parameters:
io
- an I/O tab in the Output Window- See Also:
-
NbClassLoader
public NbClassLoader(org.openide.filesystems.FileObject[] roots, ClassLoader parent, org.openide.windows.InputOutput io) -
NbClassLoader
Deprecated.Misuses classpath.Create a new class loader retrieving classes from the core IDE as well as specified file systems.- Parameters:
fileSystems
- file systems to load classes from
-
NbClassLoader
@Deprecated public NbClassLoader(org.openide.filesystems.FileSystem[] fileSystems, ClassLoader parent) Deprecated.Misuses classpath.Create a new class loader.- Parameters:
fileSystems
- file systems to load classes fromparent
- fallback class loader
-
-
Method Details
-
getResource
Create a URL to a resource specified by name. Same behavior as in the super method, but handles names beginning with a slash.- Overrides:
getResource
in classClassLoader
- Parameters:
name
- resource name- Returns:
- URL to that resource or
null
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
setDefaultPermissions
Sets a PermissionsCollectio which will be used for ProtectionDomain of newly created classes.- Parameters:
defaultPerms
-
-
getPermissions
- Overrides:
getPermissions
in classURLClassLoader
-