Code example for AbstractSingleBeanDefinitionParser

0
 * the {@code <websocket:inbound-channel-adapter/>} element. 
 * 
 * @author Artem Bilan 
 * @since 4.1 
 */ 
public class WebSocketInboundChannelAdapterParser extends AbstractSingleBeanDefinitionParser {
 
	@Override 
	protected Class<?> getBeanClass(Element element) {
		return WebSocketInboundChannelAdapter.class; 
	} 
 
	@Override 
	protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
			throws BeanDefinitionStoreException {
		String id = super.resolveId(element, definition, parserContext);
 
		if (!element.hasAttribute("channel")) {
			// the created channel will get the 'id', so the adapter's bean name includes a suffix 
			id = id + ".adapter";
Contextual code suggestions in your IDE  Get Codota for Java