Code example for AbstractSingleBeanDefinitionParser

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