org.rhq.enterprise.server.plugin.pc
Class ServerPluginClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.rhq.enterprise.server.plugin.pc.ServerPluginClassLoader

public class ServerPluginClassLoader
extends URLClassLoader

Classloader for the plugin jar itself and any embedded lib.


Constructor Summary
ServerPluginClassLoader(URL[] urls, ClassLoader parent)
           
 
Method Summary
static ServerPluginClassLoader create(String pluginJarName, URL[] pluginUrls, boolean unpackNestedJars, ClassLoader parent, File tmpDirectory)
           
static ServerPluginClassLoader create(String pluginJarName, URL pluginUrl, boolean unpackNestedJars, ClassLoader parent, File tmpDirectory)
           
 void destroy()
           
 
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.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerPluginClassLoader

public ServerPluginClassLoader(URL[] urls,
                               ClassLoader parent)
Method Detail

destroy

public void destroy()

create

public static ServerPluginClassLoader create(String pluginJarName,
                                             URL pluginUrl,
                                             boolean unpackNestedJars,
                                             ClassLoader parent,
                                             File tmpDirectory)
                                      throws Exception
Throws:
Exception

create

public static ServerPluginClassLoader create(String pluginJarName,
                                             URL[] pluginUrls,
                                             boolean unpackNestedJars,
                                             ClassLoader parent,
                                             File tmpDirectory)
                                      throws Exception
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.