private ILineReceiver lineReceiver;
public static WriterThread getInstance(ILineReceiver lineReceiver, IParam param, String writerClassName,
String writerPath, IPluginMonitor pm){
try{
IWriter writer = ReflectionUtil.createInstanceByDefaultConstructor(
writerClassName, IWriter.class,
JarLoader.getInstance(new String[]{writerPath}));
writer.setParam(param);
writer.setMonitor(pm);
return new WriterThread(lineReceiver, writer);
} catch(Exception e){
s_logger.error("Error to create WriterThread: ", e);
return null;
}