Slightly modified to talk to modified Plugin API in Jutils.

(Will now fail gracefully and silently if there is no controller directory
available to search for plugins.)
This commit is contained in:
jeffpk 2003-06-26 00:04:53 +00:00
parent de25a38b88
commit b3a1e3aa3c

View file

@ -166,8 +166,12 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
}
private void scanControllersAt(String path) {
File file = new File(path);
if (!file.exists()) {
return;
}
try {
Plugins plugins = new Plugins(new File(path));
Plugins plugins = new Plugins(file);
Class[] envClasses = plugins.getExtends(ControllerEnvironment.class);
for(int i=0;i<envClasses.length;i++){
try {