Code example for AbstractSingleBeanDefinitionParser

0
 
/** 
 * @author tomas.lukosius@opencredo.com 
 * @since 1.0 
 */ 
class AdminParser extends AbstractSingleBeanDefinitionParser {
 
	private static final String CONNECTION_FACTORY_ATTRIBUTE = "connection-factory";
 
	private static final String AUTO_STARTUP_ATTRIBUTE = "auto-startup";
 
	private static final String IGNORE_DECLARATION_EXCEPTIONS = "ignore-declaration-exceptions";
 
	@Override 
	protected String getBeanClassName(Element element) {
		return "org.springframework.amqp.rabbit.core.RabbitAdmin"; 
	} 
 
	@Override 
	protected boolean shouldGenerateId() {