Code example for AbstractSingleBeanDefinitionParser

0
 * Parser for the {@code <oxm:xmlbeans-marshaller/>} element. 
 * 
 * @author Arjen Poutsma 
 * @since 3.0 
 */ 
class XmlBeansMarshallerBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected String getBeanClassName(Element element) {
		return "org.springframework.oxm.xmlbeans.XmlBeansMarshaller"; 
	} 
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder beanDefinitionBuilder) {
		String optionsName = element.getAttribute("options");
		if (StringUtils.hasText(optionsName)) {
			beanDefinitionBuilder.addPropertyReference("xmlOptions", optionsName);
		} 
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java