com.sun.faban.harness.engine
Class DeployImageClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by com.sun.faban.harness.engine.DeployImageClassLoader

public class DeployImageClassLoader
extends URLClassLoader

ClassLoader for benchmarks, services, and possible future deploy images.

Author:
Akara Sucharitakul

Method Summary
static DeployImageClassLoader getInstance(String type, String dir, ClassLoader parent)
          Obtains an instance of the classloader for a certain deploy image (benchmark or service).
 
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
 

Method Detail

getInstance

public static DeployImageClassLoader getInstance(String type,
                                                 String dir,
                                                 ClassLoader parent)
Obtains an instance of the classloader for a certain deploy image (benchmark or service).

Parameters:
type - The type of the deploy image, benchmark or service
dir - The directory containing the deploy image
parent - The parent class loader
Returns:
The class loader to load the benchmarks or resources