|
|||||||||
| Home >> All >> junk >> system >> [ jvm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
junk.system.jvm
Class JXClassLoaderManager

java.lang.Objectjunk.system.jvm.JXClassLoaderManager
- public final class JXClassLoaderManager
- extends java.lang.Object
JXClassLoaderManager provides classloader management for the JXJvm. It allows the selection of all existing classloaders under its management. All the classes loaded into any of its classloaders can also be invoked to create an instance of that class. Reflection facilities are also available to retrieve a break down of the individual class instances.
- Since:
- JD4X 1.0
- Version:
- 0.1, 05/08/2002
| Field Summary | |
private java.util.Hashtable |
loaders
Classloader manager (internal) |
| Constructor Summary | |
JXClassLoaderManager()
Default constructor that creates an initial empty classloader manager. |
|
JXClassLoaderManager(java.util.Hashtable initial)
Create a new classloader manager with an initial pre-defined set of classloaders under its management. |
|
| Method Summary | |
void |
addClassLoader(java.lang.Object key,
JXClassLoader loader)
Add a new classloader to the classloader manager. |
java.lang.Object[] |
getAllClassLoaders()
Get all the classloaders currently in the classloader manager. |
java.util.Vector |
getAllLoadedClasses(java.lang.Object key)
Get the classes currently loaded in the desired classloader. |
JXClassLoader |
getClassLoader(java.lang.Object key)
Get an existing classloader from the classloader manager. |
java.lang.Class |
getLoadedClass(java.lang.Object key,
int index)
Get the desired class currently loaded in the desired classloader. |
int |
getNumberOfLoaders()
Get the total number of classloaders currently found in the manager. |
static java.lang.Object |
invokeInstance(java.lang.Class clazz)
Create the desired class Object by invoking its default no parameter constructor. |
boolean |
isEmpty()
Check if the classloader manager is empty. |
static void |
main(java.lang.String[] argv)
Method for testing classloader manager. |
static junk.gui.applet.JXAppletViewer |
startApplet(java.lang.Class applet)
It is used to start an applet class using the JXAppletViewer. |
static void |
startMain(java.lang.Class clazz,
java.lang.String[] param)
Use to invoke a Java class using the "public static void main" method. |
void |
unloadAllClassLoaders()
Unload all the classloaders from the classloader manager. |
boolean |
unloadClassLoader(java.lang.Object key)
Unload all the classes as well as the classloader from classloader manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
loaders
private java.util.Hashtable loaders
- Classloader manager (internal)
| Constructor Detail |
JXClassLoaderManager
public JXClassLoaderManager()
- Default constructor that creates an initial empty classloader manager.
JXClassLoaderManager
public JXClassLoaderManager(java.util.Hashtable initial)
- Create a new classloader manager with an initial pre-defined set of
classloaders under its management.
| Method Detail |
addClassLoader
public void addClassLoader(java.lang.Object key, JXClassLoader loader)
- Add a new classloader to the classloader manager.
getClassLoader
public JXClassLoader getClassLoader(java.lang.Object key)
- Get an existing classloader from the classloader manager.
getAllClassLoaders
public java.lang.Object[] getAllClassLoaders()
- Get all the classloaders currently in the classloader manager.
getLoadedClass
public java.lang.Class getLoadedClass(java.lang.Object key, int index)
- Get the desired class currently loaded in the desired classloader.
getAllLoadedClasses
public java.util.Vector getAllLoadedClasses(java.lang.Object key)
- Get the classes currently loaded in the desired classloader.
getNumberOfLoaders
public int getNumberOfLoaders()
- Get the total number of classloaders currently found in the manager.
invokeInstance
public static java.lang.Object invokeInstance(java.lang.Class clazz) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NullPointerException
- Create the desired class Object by invoking its default no parameter
constructor. This method is provided for convenience.
isEmpty
public boolean isEmpty()
- Check if the classloader manager is empty.
startApplet
public static junk.gui.applet.JXAppletViewer startApplet(java.lang.Class applet) throws java.lang.NullPointerException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException
- It is used to start an applet class using the JXAppletViewer.
startMain
public static void startMain(java.lang.Class clazz, java.lang.String[] param) throws java.lang.NoSuchMethodException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.NullPointerException
- Use to invoke a Java class using the "public static void main" method.
Any Java application can be started using this method by the JXJvm.
unloadAllClassLoaders
public void unloadAllClassLoaders()
- Unload all the classloaders from the classloader manager. It depends on
the GC, the classloader manager removes all links to its classloaders
and their classes to facilitate garbage collection.
unloadClassLoader
public boolean unloadClassLoader(java.lang.Object key)
- Unload all the classes as well as the classloader from classloader manager.
It depends on the GC, the classloader removes all links to its classes
and null's itself to facilitate garbage collection.
main
public static void main(java.lang.String[] argv)
- Method for testing classloader manager.
|
|||||||||
| Home >> All >> junk >> system >> [ jvm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
junk.system.jvm.JXClassLoaderManager