|
||||||||||
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.norther.tammi.acorn.net.URLClassLoader
public class URLClassLoader
Extends the standard URL class loader by providing assembly support for loading classes dynamically during run-time.
Constructor Summary | |
---|---|
URLClassLoader()
Contructs a new loader. |
|
URLClassLoader(ClassLoader parent)
Constructs a loader with a parent. |
|
URLClassLoader(URL[] urls)
Contructs a new loader with URLs. |
|
URLClassLoader(URL[] urls,
ClassLoader parent)
Constructs a loader with URLs and a parent. |
|
URLClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
Constructs a loader with URLs, a parent and a stream handler factory. |
Method Summary | ||
---|---|---|
Class<?> |
defineClass(String name,
org.objectweb.asm.ClassWriter cw)
Defines a class by assembling it from the class writer. |
|
|
defineSubclass(String name,
Class<T> clazz,
Class<?>... ifaces)
Defines a subclass for a class with all super constructors. |
|
|
defineSubclass(String name,
Class<T> clazz,
short access,
Class<?>... ifaces)
Defines a subclass for a class with all super constructors but modified access flags. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLClassLoader()
public URLClassLoader(ClassLoader parent)
parent
- the parent class loader.public URLClassLoader(URL[] urls)
urls
- an array of URLs.public URLClassLoader(URL[] urls, ClassLoader parent)
urls
- an array of URLs.parent
- the parent class loader.public URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
urls
- an array of URLs.parent
- the parent class loader.factory
- the stream handler factory.Method Detail |
---|
public Class<?> defineClass(String name, org.objectweb.asm.ClassWriter cw) throws ClassFormatError
name
- the name of the class, or null if not known.cw
- the class writer.
ClassFormatError
- if the definition is invalid.public <T> Class<? extends T> defineSubclass(String name, Class<T> clazz, Class<?>... ifaces) throws ClassFormatError
T
- the superclass type.name
- the name of the class.clazz
- the superclass.ifaces
- optional interfaces.
ClassFormatError
- if the definition is invalid.public <T> Class<? extends T> defineSubclass(String name, Class<T> clazz, short access, Class<?>... ifaces) throws ClassFormatError
T
- the superclass type.name
- the name of the class.clazz
- the superclass.access
- access flags.ifaces
- optional interfaces.
ClassFormatError
- if the definition is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |