Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.steveash.bushwhacker;
 
 

Author(s):
Steve Ash
public class BushwhackerBuilder {
  private final ConfigLoader loader = ConfigLoader.getInstance();
  private final HandlerMaker handlerMaker = new HandlerMaker();
  public Bushwhacker buildFromClasspath(String rulesFilenamethrows IOException {
    XmlRules xmlRules = .loadRulesFromClasspath(rulesFilename);
    ExceptionHandler handler = .buildHandlersFor(xmlRules);
    CachingHandlerDecorator cachingHandler = new CachingHandlerDecorator(handler);
    ExceptionChainHandler chainHandler = new DefaultExceptionChainHandler(cachingHandler);
    return new Bushwhacker(chainHandler);
  }
New to GrepCode? Check out our FAQ X