org.schmant.tpm
Class SharedTaskPackageClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.entityfs.util.lang.EntityClassLoader
          extended by org.schmant.tpm.TaskPackageClassLoader
              extended by org.schmant.tpm.SharedTaskPackageClassLoader

public class SharedTaskPackageClassLoader
extends TaskPackageClassLoader

This is the TaskPackageClassLoader for the (default) shared class loader strategy. It uses the same class loader for all task packages.

Since:
0.5
Author:
Karl Gustafsson

Constructor Summary
SharedTaskPackageClassLoader(ClassLoader parent)
           
 
Method Summary
 void addClasspath(String packageName, List<? extends EntityView> l)
          Add a list of packages to the class loader for a task package.
 
Methods inherited from class org.entityfs.util.lang.EntityClassLoader
addToClasspath, close, defineClass, definePackage, finalize, findClass, findFileInClasspath, getClassOrNull, getClasspath, getLogAdapter, getPackage, getPackages, getResourceAsStream, isDebugLoggingEnabled, isFinerLoggingEnabled, isTraceLoggingEnabled
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedTaskPackageClassLoader

public SharedTaskPackageClassLoader(ClassLoader parent)
Method Detail

addClasspath

public void addClasspath(String packageName,
                         List<? extends EntityView> l)
Description copied from class: TaskPackageClassLoader
Add a list of packages to the class loader for a task package.

The implementation of this method should be synchronized.

Specified by:
addClasspath in class TaskPackageClassLoader
Parameters:
packageName - The package name.
l - The classpath. All Jar files in the class path must be FCRandomAccess:ible.