}
}
@SuppressWarnings("unchecked")
private void updateBuryPoints(String springXml) {
StringXmlApplicationContext ctx = null;
try {
ctx = new StringXmlApplicationContext(springXml);
Map<String, String> scripts = ctx.getBeansOfType(String.class);
for (Map.Entry<String, String> e : scripts.entrySet()) {
/*LogBuilder old = buryPoints.get(e.getKey());
if (old != null) {
((GroovyObject)old).getClass().getClassLoader().
}*/
buryPoints.put(e.getKey(), createBuilder(e.getValue()));
log.warn("Set LogBuilder for buryPoint " + e.getKey() + ":" + e.getValue());
}
} catch (Exception e) {
log.error("Set LogBuilder failed. springXml=" + springXml, e);
} finally {
if (ctx != null) {
ctx.destroy();
ctx = null;
}
}
}