Code example for AbstractSingleBeanDefinitionParser

0
 * 
 * @author Jonas Partner 
 * @author Mark Fisher 
 * @author Artem Bilan 
 */ 
public class SecuredChannelsParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected Class<?> getBeanClass(Element element) {
		return ChannelSecurityInterceptor.class; 
	} 
 
	@Override 
	protected boolean shouldGenerateId() { 
		return true; 
	} 
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		builder.addConstructorArgValue(this.parseSecurityMetadataSource(element, parserContext));