@Override protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler() { return new WebSocketAnnotationMethodMessageHandler( clientInboundChannel(), clientOutboundChannel(), brokerMessagingTemplate()); }
private void initControllerAdviceCache() { ApplicationContext context = getApplicationContext(); if (context == null) { return; } if (logger.isTraceEnabled()) { logger.trace("Looking for @MessageExceptionHandler mappings: " + context); } List<ControllerAdviceBean> beans = ControllerAdviceBean.findAnnotatedBeans(context); AnnotationAwareOrderComparator.sort(beans); initMessagingAdviceCache(MessagingControllerAdviceBean.createFromList(beans)); }
@Override public void afterPropertiesSet() { initControllerAdviceCache(); super.afterPropertiesSet(); }
private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) { if (beans == null) { return; } for (MessagingAdviceBean bean : beans) { Class<?> type = bean.getBeanType(); if (type != null) { AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type); if (resolver.hasExceptionMappings()) { registerExceptionHandlerAdvice(bean, resolver); if (logger.isTraceEnabled()) { logger.trace("Detected @MessageExceptionHandler methods in " + bean); } } } } }
private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) { if (beans == null) { return; } for (MessagingAdviceBean bean : beans) { Class<?> type = bean.getBeanType(); if (type != null) { AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type); if (resolver.hasExceptionMappings()) { registerExceptionHandlerAdvice(bean, resolver); if (logger.isInfoEnabled()) { logger.info("Detected @MessageExceptionHandler methods in " + bean); } } } } }
private void initControllerAdviceCache() { ApplicationContext context = getApplicationContext(); if (context == null) { return; } if (logger.isTraceEnabled()) { logger.trace("Looking for @MessageExceptionHandler mappings: " + context); } List<ControllerAdviceBean> beans = ControllerAdviceBean.findAnnotatedBeans(context); AnnotationAwareOrderComparator.sort(beans); initMessagingAdviceCache(MessagingControllerAdviceBean.createFromList(beans)); }
@Override public void afterPropertiesSet() { initControllerAdviceCache(); super.afterPropertiesSet(); }
@Override protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler() { return new WebSocketAnnotationMethodMessageHandler( clientInboundChannel(), clientOutboundChannel(), brokerMessagingTemplate()); }
private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) { if (beans == null) { return; } for (MessagingAdviceBean bean : beans) { Class<?> type = bean.getBeanType(); if (type != null) { AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type); if (resolver.hasExceptionMappings()) { registerExceptionHandlerAdvice(bean, resolver); if (logger.isTraceEnabled()) { logger.trace("Detected @MessageExceptionHandler methods in " + bean); } } } } }
private void initControllerAdviceCache() { ApplicationContext context = getApplicationContext(); if (context == null) { return; } if (logger.isDebugEnabled()) { logger.debug("Looking for @MessageExceptionHandler mappings: " + context); } List<ControllerAdviceBean> beans = ControllerAdviceBean.findAnnotatedBeans(context); AnnotationAwareOrderComparator.sort(beans); initMessagingAdviceCache(MessagingControllerAdviceBean.createFromList(beans)); }
@Override public void afterPropertiesSet() { initControllerAdviceCache(); super.afterPropertiesSet(); }
@Override protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler() { return new WebSocketAnnotationMethodMessageHandler( clientInboundChannel(), clientOutboundChannel(), brokerMessagingTemplate()); }