Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util
Class PluginLoader

    java.lang.Object
      java.lang.ClassLoader
          java.security.SecureClassLoader
              java.net.URLClassLoader
                  org.hyperic.util.PluginLoader

    public class PluginLoader

extends java.net.URLClassLoader

Method Summary
`void` | `addURL(java.io.File file)`
`void` | `addURL(java.lang.String url)`
`void` | `addURLs(java.util.List urls)`
`void` | `addURLs(java.lang.String[] urls)`
`static PluginLoader` | `create(java.lang.String pluginName, java.lang.ClassLoader parent)`
`static java.lang.String[]` | `expand(java.io.File file)`
`protected java.lang.String` | `findLibrary(java.lang.String libname)`
`static java.lang.ClassLoader` | `getClassLoader()`
`static java.lang.String` | `getPluginMainClass(java.net.URL url)`
`java.lang.Class` | `loadPlugin()`
`java.lang.Class` | `loadPlugin(java.lang.String name, byte[] bytecode, int len)`
`static void` | `resetClassLoader(java.lang.Object obj)`
`static void` | `setClassLoader(java.lang.ClassLoader loader)`
`static boolean` | `setClassLoader(java.lang.Object obj)`
`java.lang.String` | `toString()`

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, 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, wait, wait, wait`

Method Detail

### getPluginMainClass

    public static java.lang.String getPluginMainClass(java.net.URL url)
                                               throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### create

    public static PluginLoader create(java.lang.String pluginName,
                                      java.lang.ClassLoader parent)
                               throws PluginLoaderException

  Throws:
    `PluginLoaderException`

### getClassLoader

    public static java.lang.ClassLoader getClassLoader()

### resetClassLoader

    public static void resetClassLoader(java.lang.Object obj)

### setClassLoader

    public static boolean setClassLoader(java.lang.Object obj)

### setClassLoader

    public static void setClassLoader(java.lang.ClassLoader loader)

### loadPlugin

    public java.lang.Class loadPlugin()
                               throws java.lang.ClassNotFoundException,
                                      PluginLoaderException

  Throws:
    `java.lang.ClassNotFoundException`
    `PluginLoaderException`

### loadPlugin

    public java.lang.Class loadPlugin(java.lang.String name,
                                      byte[] bytecode,
                                      int len)

### addURL

    public void addURL(java.lang.String url)
                throws PluginLoaderException

  Throws:
    `PluginLoaderException`

### expand

    public static java.lang.String[] expand(java.io.File file)

### addURL

    public void addURL(java.io.File file)
                throws PluginLoaderException

  Throws:
    `PluginLoaderException`

### addURLs

    public void addURLs(java.lang.String[] urls)
                 throws PluginLoaderException

  Throws:
    `PluginLoaderException`

### addURLs

    public void addURLs(java.util.List urls)
                 throws PluginLoaderException

  Throws:
    `PluginLoaderException`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### findLibrary

    protected java.lang.String findLibrary(java.lang.String libname)

  Overrides:
    `findLibrary` in class `java.lang.ClassLoader`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.