com.firefly.core.support.AbstractBeanReader Maven / Gradle / Ivy
package com.firefly.core.support;
import java.util.List;
import com.firefly.core.support.exception.BeanDefinitionParsingException;
import com.firefly.utils.log.Log;
import com.firefly.utils.log.LogFactory;
public class AbstractBeanReader implements BeanReader {
private static Log log = LogFactory.getInstance().getLog("firefly-system");
protected List beanDefinitions;
@Override
public List loadBeanDefinitions() {
return beanDefinitions;
}
protected void error(String msg) {
log.error(msg);
throw new BeanDefinitionParsingException(msg);
}
}