jason.core
Class JasonClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--jason.core.JasonClassLoader

public class JasonClassLoader
extends java.lang.ClassLoader

Created Thu Mar 28 15:44:07 2002

This is a classloader for user services. This classLoader is able to find a class from a set of directories or jar/zip file


Constructor Summary
JasonClassLoader(java.lang.ClassLoader parent, java.io.File refPath, java.lang.String classpath)
           
JasonClassLoader(java.io.File refPath, java.lang.String classpath)
          Here a classpath definition that can contains .jar or .zip or a directory
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
          This is the method where the task of class loading is delegated to our custom loader.
 java.lang.Class loadClass(java.lang.String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, 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

JasonClassLoader

public JasonClassLoader(java.lang.ClassLoader parent,
                        java.io.File refPath,
                        java.lang.String classpath)

JasonClassLoader

public JasonClassLoader(java.io.File refPath,
                        java.lang.String classpath)
Here a classpath definition that can contains .jar or .zip or a directory

Parameters:
refPath - the path the contains the xml service file
classpath - the classpath for the service
Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
java.lang.ClassNotFoundException

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
This is the method where the task of class loading is delegated to our custom loader.

Overrides:
findClass in class java.lang.ClassLoader
Parameters:
name - the name of the class
Returns:
the resulting Class object
Throws:
java.lang.ClassNotFoundException - if the class could not be found