Code example for AbstractSingleBeanDefinitionParser

0
 * Parser for the {@code <oxm:jaxb2-marshaller/>} element. 
 * 
 * @author Arjen Poutsma 
 * @since 3.0 
 */ 
class Jaxb2MarshallerBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected String getBeanClassName(Element element) {
		return "org.springframework.oxm.jaxb.Jaxb2Marshaller"; 
	} 
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder beanDefinitionBuilder) {
		String contextPath = element.getAttribute("context-path");
		if (!StringUtils.hasText(contextPath)) {
			// Backwards compatibility with 3.x version of the xsd 
			contextPath = element.getAttribute("contextPath");
		} 
		if (StringUtils.hasText(contextPath)) {
Contextual code suggestions in your IDE  Get Codota for Java