Code example for AbstractSingleBeanDefinitionParser

0
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser; 
import org.w3c.dom.Element; 
 
import com.codahale.metrics.health.HealthCheckRegistry; 
 
class HealthCheckRegistryBeanDefinitionParser extends AbstractSingleBeanDefinitionParser { 
 
	@Override 
	protected Class<?> getBeanClass(Element element) { 
		return HealthCheckRegistry.class; 
	} 
 
	@Override 
	protected boolean shouldGenerateIdAsFallback() { 
		return true; 
	} 
 
}