Code example for AbstractSingleBeanDefinitionParser

0
 * 
 * @author Thomas Risberg 
 * @since 2.0 
 * 
 */ 
public class JobRepositoryParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected String getBeanClassName(Element element) {
		return "org.springframework.batch.core.repository.support.JobRepositoryFactoryBean"; 
	} 
 
	@Override 
	protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
			throws BeanDefinitionStoreException {
 
		String id = element.getAttribute(ID_ATTRIBUTE);
		if (!StringUtils.hasText(id)) {
			id = "jobRepository";
		}