Code example for AbstractSingleBeanDefinitionParser

 * @author Ryan Heaton 
 * @author Andrew McCall 
 * @author Dave Syer 
public class ConsumerServiceBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
	protected Class<?> getBeanClass(Element element) {
		return InMemoryConsumerDetailsService.class; 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		List<Element> consumerElements = DomUtils.getChildElementsByTagName(element, "consumer");
		ManagedMap<String, BeanMetadataElement> consumers = new ManagedMap<String, BeanMetadataElement>();
		for (Object item : consumerElements) {
			BeanDefinitionBuilder consumer = BeanDefinitionBuilder
Connect your IDE to all the code out there  Get Codota for Java