if (analyzer instanceof LogEnabled) {
this.setupLogger(analyzer);
}
if (analyzer instanceof ConfigurableAnalyzer) {
ConfigurableAnalyzer confanalyzer = ((ConfigurableAnalyzer) analyzer);
// CONFIGFILE
String conffilename = confAnalyzer[i].getAttribute(CONFIG_ATT);
if (conffilename == null || conffilename.equals("")) {
throw new ConfigurationException("the analyzer " + key
+ " must have a " + CONFIG_ATT + " attribute");
}
try {
conffile = resolver.resolveURI(conffilename);
} catch (Exception ex1) {
throw new ConfigurationException(
"Config file source error", ex1);
}
// CHECKUPDATE
checkconfigfile = confAnalyzer[i].getAttributeAsBoolean(
CONFIGCHECK_ATT, false);
confanalyzer.setAnalyerManager(this);
confanalyzer.setConfigFile(conffile);
confanalyzer.setEnableCheckFile(checkconfigfile);
}
this.put(key, analyzer);
}
manager.release(resolver);