Code example for AbstractSingleBeanDefinitionParser

0
 * @author Juergen Hoeller 
 * @author Arjen Poutsma 
 * @author Dave Syer 
 * @since 2.5.2 
 */ 
abstract class AbstractPropertyLoadingBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected boolean shouldGenerateId() { 
		return true; 
	} 
 
	@Override 
	protected void doParse(Element element, BeanDefinitionBuilder builder) {
		String location = element.getAttribute("location");
		if (StringUtils.hasLength(location)) {
			String[] locations = StringUtils.commaDelimitedListToStringArray(location);
			builder.addPropertyValue("locations", locations);
		} 
 
Contextual code suggestions in your IDE  Get Codota for Java