Ignore:
Timestamp:
Jan 22, 2007, 10:52:28 AM (16 years ago)
Author:
mbayer
Message:

removed hard coding of id of RawDataImporter? plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uk/ac/scri/batchimporter/src/sbrn/base/PluginConfigDetector.java

    r226 r229  
    7070    try
    7171    {
    72       //here is a bit of hard coding but it should be fine
    73       //net.sf.basedb.plugins.RawDataFlatFileImporter has id 1 in the database and this should not change
    74       //we are not interested in any other type of plugin at this point
    75       PluginDefinition plugin = PluginDefinition.getById(dc, 1);
     72      //get the plugin definition for net.sf.basedb.plugins.RawDataFlatFileImporter
     73      PluginDefinition plugin = PluginDefinition.getByClassName(dc, "net.sf.basedb.plugins.RawDataFlatFileImporter");
    7674      List<PluginConfiguration> configList = getConfigs(plugin,dc,exampleFile);
    7775     
Note: See TracChangeset for help on using the changeset viewer.