Code example for AbstractSingleBeanDefinitionParser

0
 * 
 * @author Michael Minella 
 * @author Chris Schaefer 
 * @since 3.0 
 */ 
public class JsrJobParser extends AbstractSingleBeanDefinitionParser {
	private static final String ID_ATTRIBUTE = "id";
	private static final String RESTARTABLE_ATTRIBUTE = "restartable";
 
	@Override 
	protected Class<JobFactoryBean> getBeanClass(Element element) {
		return JobFactoryBean.class; 
	} 
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		CoreNamespaceUtils.autoregisterBeansForNamespace(parserContext, parserContext.extractSource(element));
		JsrNamespaceUtils.autoregisterJsrBeansForNamespace(parserContext);
 
		String jobName = element.getAttribute(ID_ATTRIBUTE);
Connect your IDE to all the code out there  Get Codota for Java