Method Summary |
|
public ClassLoader | createBootstrapClassLoader(Component component) Creates and returns the installation bootstrap classloader for a JBI
component.
This instance is not cached by the ClassLoaderFactory as these are
created and used infrequently. |
public ClassLoader | createComponentClassLoader(Component component) Creates and returns the classloader for a JBI component.
It is used to load classes in the classpath of a component installed
in the JBI namespace. |
public ClassLoader | createSharedClassLoader(SharedLibrary sharedLib) Creates and returns the classloader for a Shared Library.
This classloader is used to load classes belonging to libraries
that are shared between two or more JBI components.
Parameters: sharedLib - A SharedLibrary object representing the library. throws: javax.jbi.JBIException - If the shared classloader cannot besuccessfully created. throws: java.lang.IllegalArgumentException - If a null argument isreceived. |
public ClassLoader | getComponentClassLoader(String componentId) Returns the classloader of a JBI component (binding or engine).
This method is typically called by components such as NMS after the
initial class loader creation by the ComponentFramework. |
public static ClassLoaderFactory | getInstance() Returns a singleton instance of the ClassLoaderFactory class. |
public ClassLoader | getSharedClassLoader(String sharedLibId) Returns the classloader for a Shared Library.
This shared class loader is shared between two or more components
installed in the JBI namespace.
This method is typically called by components such as NMR after the
initial class loader creation by the ComponentFramework. |
public void | removeComponentClassLoader(String componentId) Removes the classloader of a JBI component. |
public void | removeSharedClassLoader(String sharedLibId) Destroys the classloader for a Shared Library.
This method should be called only when the corresponding Shared
Library is being destroyed. |