Code example for AbstractSingleBeanDefinitionParser

0
 * the {@code <websocket:client-container/>} element. 
 * 
 * @author Artem Bilan 
 * @since 4.1 
 */ 
public class ClientWebSocketContainerParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected Class<?> getBeanClass(Element element) {
		return ClientWebSocketContainer.class; 
	} 
 
	@Override 
	protected boolean shouldGenerateIdAsFallback() { 
		return true; 
	} 
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		builder.addConstructorArgReference(element.getAttribute("client"))