|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LoaderMBean
An interface to class loader MBeans supporting loading of assembled classes dynamically.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Method Summary | |
|---|---|
void |
addURL(URL url)
Adds a new URL to search paths. |
Class |
defineClass(String name,
org.objectweb.asm.ClassWriter cw)
Defines an assembled class. |
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. |
URL |
getResource(String name)
Gets a resource with the specified name by going through the class loader hierarchy. |
InputStream |
getResourceAsStream(String name)
Gets an input stream for reading the specified resource. |
Enumeration |
getResources(String name)
Gets all resources with the given name by going through the class loader hierarchy. |
URL[] |
getURLs()
Gets the array of URL search paths. |
boolean |
isClassDefined(String name)
Checks whether the named class is defined. |
Class |
loadClass(String name)
Loads the class with the specified name. |
| Methods inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
getMBean |
| Method Detail |
|---|
URL getResource(String name)
name - the resource name.
InputStream getResourceAsStream(String name)
name - the resource name.
Enumeration getResources(String name)
throws IOException
name - the resource name.
IOException - for I/O errors.boolean isClassDefined(String name)
name - the name of the class.
Class loadClass(String name)
throws ClassNotFoundException
name - the name of the class.
ClassNotFoundException - if not found.
Class defineClass(String name,
org.objectweb.asm.ClassWriter cw)
throws ClassFormatError
name - the name of the class.cw - the class writer.
ClassFormatError - if the definition is invalid.
Class defineSubclass(String name,
Class clazz)
throws ClassFormatError
name - the name of the class.clazz - the superclass.
ClassFormatError - if the definition is invalid.
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.URL[] getURLs()
void addURL(URL url)
url - the new URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||