public ActionChain eval(NutConfig config, ActionInfo ai) {
try {
List<Processor> list = new ArrayList<Processor>();
for (String name : co.getProcessors(ai.getChainName())) {
Processor processor = getProcessorByName(config, name);
processor.init(config, ai);
list.add(processor);
}
Processor errorProcessor = getProcessorByName(config, co.getErrorProcessor(ai.getChainName()));
errorProcessor.init(config, ai);
/*
* 返回动作链实例
*/
ActionChain chain = new NutActionChain(list, errorProcessor, ai.getMethod());
return chain;