diff --git a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java index 8bbbe52..93dd2df 100644 --- a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java +++ b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java @@ -24,7 +24,8 @@ public class WMICrawler extends Crawler { return WMICrawlerOS.getInstance().process(config); } - public Object getInternalMeta(Config config) throws Exception { + @Override + public Object getInternalMeta(Config c) throws Exception { List metaConfigList = loadMetaConfig(); @@ -35,7 +36,7 @@ public class WMICrawler extends Crawler { for(Config metaConfig : metaConfigList) { for(int indexI = 0; indexI < metaConfig.getItems().size(); ++indexI) { - ofResultSet = os.processWMI(config, metaConfig.getItems().get(indexI)); + ofResultSet = os.processWMI(c, metaConfig.getItems().get(indexI)); if(ofResultSet != null) { retlist.add(ofResultSet); } @@ -45,6 +46,7 @@ public class WMICrawler extends Crawler { return null; } + private List loadMetaConfig() throws IOException { ClassLoader classLoader = getClass().getClassLoader(); ObjectMapper mapper = new ObjectMapper();