ter.API.ClassLoader
Class PluginLoader

java.lang.Object
  |
  +--ter.API.ClassLoader.PluginLoader

public class PluginLoader
extends java.lang.Object

Title: JavInspector

Description: a plugin loader that loads classes ter.SDK.Plugin from a directory

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
Jerôme GAHIDE - Lucas CHARBIT - Gabriel ZERBIB - Xavier GALBOIS

Constructor Summary
PluginLoader(java.lang.String rep, java.lang.String packagename)
           
 
Method Summary
 java.util.Hashtable loadPlugins()
          load all the classes in the directory and return them in an Hashtable
 void setParam(java.lang.String rep, java.lang.String packagename)
          changes this PluginLoader parameters into those supplied
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLoader

public PluginLoader(java.lang.String rep,
                    java.lang.String packagename)
Parameters:
rep - Directory where to find the Classes
packagename - optional null or the package name
Method Detail

setParam

public void setParam(java.lang.String rep,
                     java.lang.String packagename)
changes this PluginLoader parameters into those supplied

Parameters:
rep - Directory where to find the Classes
packagename - optional null or the package name

loadPlugins

public java.util.Hashtable loadPlugins()
                                throws java.io.FileNotFoundException
load all the classes in the directory and return them in an Hashtable

Returns:
Class of the puglins
Throws:
java.io.FileNotFoundException - - if the directory does not exists