|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.ClassLoaderManager
public class ClassLoaderManager
Manages the classloaders created and used by the master plugin container and all plugins.
| Constructor Summary | |
|---|---|
ClassLoaderManager(java.util.Map<java.net.URL,? extends ServerPluginDescriptorType> plugins,
java.lang.ClassLoader rootClassLoader,
java.io.File tmpDir)
Creates the object that will manage all classloaders for the plugins deployed in the server. |
|
| Method Summary | |
|---|---|
int |
getNumberOfServerPluginClassLoaders()
Returns the total number of plugin classloaders that have been created and managed. |
java.lang.ClassLoader |
getRootClassLoader()
Returns the classloader that should be the ancestor (i.e. |
java.util.Map<PluginKey,java.lang.ClassLoader> |
getServerPluginClassLoaders()
Returns a shallow copy of the plugin classloaders keyed on plugin key. |
java.lang.ClassLoader |
obtainServerPluginClassLoader(PluginKey pluginKey)
Returns a plugin classloader (creating it if necessary). |
void |
shutdown()
Cleans up this object and all classloaders it has created. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderManager(java.util.Map<java.net.URL,? extends ServerPluginDescriptorType> plugins,
java.lang.ClassLoader rootClassLoader,
java.io.File tmpDir)
plugins - maps a plugin URL to that plugin's descriptorrootClassLoader - the classloader at the top of the classloader hierarchytmpDir - where the classloaders can write out the jars that are embedded in the plugin jars| Method Detail |
|---|
public void shutdown()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.ClassLoader getRootClassLoader()
public java.lang.ClassLoader obtainServerPluginClassLoader(PluginKey pluginKey)
throws java.lang.Exception
pluginKey - the plugin whose classloader is to be created
java.lang.Exceptionpublic int getNumberOfServerPluginClassLoaders()
public java.util.Map<PluginKey,java.lang.ClassLoader> getServerPluginClassLoaders()
#obtainServerPluginClassLoader(String).
null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||