Package com.taobao.tddl.common.util

Examples of com.taobao.tddl.common.util.StringXmlApplicationContext


    }
  }

  @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;
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.taobao.tddl.common.util.StringXmlApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.