|
void
|
clearAssertionStatus()
Clears the default, package and class assertion status of a classloader
|
|
final
Class<?>
|
defineClass(byte[] classRep, int offset, int length)
|
|
final
Class<?>
|
defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain)
Defines a new class for the name, bytecodes in the byte buffer and the
protection domain.
|
|
final
Class<?>
|
defineClass(String className, byte[] classRep, int offset, int length, ProtectionDomain protectionDomain)
Constructs a new class from an array of bytes containing a class
definition in class file format and assigns the new class to the
specified protection domain.
|
|
final
Class<?>
|
defineClass(String className, byte[] classRep, int offset, int length)
Constructs a new class from an array of bytes containing a class
definition in class file format.
|
|
Package
|
definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Define a new Package using the specified information.
|
|
Class<?>
|
findClass(String className)
Overridden by subclasses, by default throws ClassNotFoundException.
|
|
String
|
findLibrary(String libName)
Returns the absolute path of the file containing the library associated
with the given name, or null.
|
|
final
Class<?>
|
findLoadedClass(String className)
Attempts to find and return a class which has already been loaded by the
virtual machine.
|
|
URL
|
findResource(String resName)
Returns an URL which can be used to access the resource described by
resName, using the class loader's resource lookup algorithm.
|
|
Enumeration<URL>
|
findResources(String resName)
Returns an Enumeration of URL which can be used to access the resources
described by resName, using the class loader's resource lookup algorithm.
|
|
final
Class<?>
|
findSystemClass(String className)
Attempts to load a class using the system class loader.
|
|
Package
|
getPackage(String name)
Attempt to locate the requested package.
|
|
Package[]
|
getPackages()
Return all the packages known to this class loader.
|
|
final
ClassLoader
|
getParent()
Returns the specified ClassLoader's parent.
|
|
URL
|
getResource(String resName)
Returns an URL which can be used to access the resource described by
resName, using the class loader's resource lookup algorithm.
|
|
InputStream
|
getResourceAsStream(String resName)
Returns a stream on a resource found by looking up resName using the
class loader's resource lookup algorithm.
|
|
Enumeration<URL>
|
getResources(String resName)
Returns an Enumeration of URL which can be used to access the resources
described by resName, using the class loader's resource lookup algorithm.
|
|
static
ClassLoader
|
getSystemClassLoader()
Returns the system class loader.
|
|
static
URL
|
getSystemResource(String resName)
Returns an URL specifying a resource which can be found by looking up
resName using the system class loader's resource lookup algorithm.
|
|
static
InputStream
|
getSystemResourceAsStream(String resName)
Returns a stream on a resource found by looking up resName using the
system class loader's resource lookup algorithm.
|
|
static
Enumeration<URL>
|
getSystemResources(String resName)
Returns an Enumeration of URLs containing all resources which can be
found by looking up resName using the system class loader's resource
lookup algorithm.
|
|
Class<?>
|
loadClass(String className)
Invoked by the Virtual Machine when resolving class references.
|
|
Class<?>
|
loadClass(String className, boolean resolve)
Loads the class with the specified name, optionally linking the class
after load.
|
|
final
void
|
resolveClass(Class<?> clazz)
Forces a class to be linked (initialized).
|
|
void
|
setClassAssertionStatus(String cname, boolean enable)
Sets the assertion status of a class.
|
|
void
|
setDefaultAssertionStatus(boolean enable)
Sets the default assertion status of a classloader
|
|
void
|
setPackageAssertionStatus(String pname, boolean enable)
Sets the assertion status of a package.
|
|
final
void
|
setSigners(Class<?> c, Object[] signers)
Sets the signers of a class.
|