Code example for AbstractSingleBeanDefinitionParser

0
 
import org.apache.cxf.helpers.DOMUtils; 
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
 
public class StringBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
 
    @Override 
    protected void doParse(Element element, BeanDefinitionBuilder builder) {
        builder.addConstructorArgValue(DOMUtils.getRawContent(element));
    } 
 
    @Override 
    protected Class<?> getBeanClass(Element arg0) {
        return String.class;
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java