launching one class file from inside another?
So given the following: public void notify is simply setting variables, instances and launching methods. However, in one method, I need to run something called a PluggableScanner. PluggableScanner is actually a compiled class file written by someone else. I need to perform some functions, then execute this class file. The problem I am having is HOW?
...
publicvoid notify(Object sender,int msg, Object arg)
{
switch (msg)
{
case APP_INIT:
String os =null;
os = System.getProperty("os.name");
//os = "Linux"; //Uncomment this line and comment out the line above to troubleshoot OS variable
dataDir =new File(context.getDataDirectory());
String files[] = dataDir.list();
String params =null;
context = (IApplicationContext) arg;
workspace = (IWorkspace) context.getFeature("workspace");
//Logging
System.out.println("The Tuner Workspace is defined as: " + workspace);
System.out.println("Channel Data Directory is: " + dataDir);
context.log(26001,8,"Data Directory is: " + dataDir);
for(i = 0; i < files.length;i++)
{
String f = files[i];
System.out.println("Current element in directory list array is: " + f);
context.log(26001,8,"Current element in directory list array is: " + f);
// shell and/or vbscripts must be copied into the data directory of the channel
copyToData(context, f);
}
executeScripts(context, os);
executePluggable();
break;
case APP_START:
break;
case APP_STOP:
break;
}
}
...
privateboolean executePluggable()
{
boolean returnCode =false;
try
{
//PluggableScanner.notify();
}
catch (Exception e)
{
}
return returnCode;
}

