|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader java.net.URLClassLoader org.openide.execution.NbClassLoader
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...
ClassPath.getClassLoader(...)
Field Summary | |
protected InputOutput |
inout
I/O for classes defined by this classloader. |
Constructor Summary | |
NbClassLoader()
Deprecated. Misuses classpath. |
|
NbClassLoader(FileObject[] roots,
ClassLoader parent,
InputOutput io)
Create a new class loader retrieving classes from a set of package roots. |
|
NbClassLoader(FileSystem[] fileSystems)
Deprecated. Misuses classpath. |
|
NbClassLoader(FileSystem[] fileSystems,
ClassLoader parent)
Deprecated. Misuses classpath. |
|
NbClassLoader(InputOutput io)
Deprecated. Misuses classpath. |
Method Summary | |
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. |
Methods inherited from class java.net.URLClassLoader |
addURL, definePackage, findResource, findResources, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected InputOutput inout
null
.
Constructor Detail |
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) throws FileStateInvalidException
roots
- a set of package rootsparent
- a parent loaderio
- an I/O tab in the Output Window, or null
FileStateInvalidException
- if some of the roots are not validpublic NbClassLoader(FileSystem[] fileSystems)
fileSystems
- file systems to load classes frompublic NbClassLoader(FileSystem[] fileSystems, ClassLoader parent)
fileSystems
- file systems to load classes fromparent
- fallback class loaderMethod Detail |
public URL getResource(String name)
name
- resource name
null
protected Class findClass(String name) throws ClassNotFoundException
ClassNotFoundException
public void setDefaultPermissions(PermissionCollection defaultPerms)
defaultPerms
- protected final PermissionCollection getPermissions(CodeSource cs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |