jmathlib.core.functions
Class ExternalFunctionClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by jmathlib.core.functions.ExternalFunctionClassLoader

public class ExternalFunctionClassLoader
extends java.lang.ClassLoader

Class to load any External functions used


Field Summary
private  FunctionPathBroker pathBroker
           
 
Constructor Summary
ExternalFunctionClassLoader(FunctionPathBroker _pathBroker)
          Create the class loader
 
Method Summary
 java.lang.Class findClass(java.lang.String className)
           
protected  byte[] getClassData(java.io.File classFile)
          read the data for the class from the specified directory and any subdirectories
 java.lang.String getClassnameForFunction(java.lang.String functionName)
          Returns a class name that refers to the functionName.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, 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
 

Field Detail

pathBroker

private FunctionPathBroker pathBroker
Constructor Detail

ExternalFunctionClassLoader

public ExternalFunctionClassLoader(FunctionPathBroker _pathBroker)
Create the class loader

Parameters:
_classDir - = the name of the base class directory
Method Detail

getClassnameForFunction

public java.lang.String getClassnameForFunction(java.lang.String functionName)
Returns a class name that refers to the functionName. The class name (rather than simply the function name) must be used when calling any Classloader methods.


findClass

public java.lang.Class findClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

getClassData

protected byte[] getClassData(java.io.File classFile)
                       throws java.io.IOException
read the data for the class from the specified directory and any subdirectories

Parameters:
className - = the class to load
Throws:
java.io.IOException

FOOTER

BOTTOM