|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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. |
Class |
defineSubclass(String name,
Class clazz)
Defines a subclass for a class with all super constructors. |
Class |
defineSubclass(String name,
Class clazz,
short access)
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 Class defineSubclass(String name,
Class clazz)
throws ClassFormatError
name - the name of the class.clazz - the superclass.
ClassFormatError - if the definition is invalid.
public Class defineSubclass(String name,
Class clazz,
short access)
throws ClassFormatError
name - the name of the class.clazz - the superclass.access - access flags.
ClassFormatError - if the definition is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||