Code example for AbstractSingleBeanDefinitionParser

0
 * Parser for the <selector-chain/> element. 
 * 
 * @author Mark Fisher 
 * @author Iwein Fuld 
 */ 
public class SelectorChainParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected String getBeanClassName(Element element) {
		return MessageSelectorChain.class.getName();
	} 
 
	public void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		if (!StringUtils.hasText(element.getAttribute("id"))) {
			parserContext.getReaderContext().error("id is required", element);
		} 
		this.parseSelectorChain(builder, element, parserContext);
	} 
 
	@SuppressWarnings({ "unchecked", "rawtypes" }) 
Contextual code suggestions in your IDE  Get Codota for Java