update putconfig

This commit is contained in:
jackdaw@loafle.com 2017-04-12 13:57:39 +09:00
parent 2eea762446
commit 36e93f76d0

View File

@ -1,6 +1,7 @@
package com.loafle.overflow.crawler;
import java.util.HashMap;
import java.util.Map;
/**
@ -25,6 +26,9 @@ public abstract class Crawler {
}
public void putConfig(String id,Map<String,Object> o) throws Exception {
if (configs == null) {
configs = new HashMap<String,Map<String,Object>>();
}
configs.put(id,o);
}