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); } } } } }
if (advice.isApplicableToBeanType(beanType)) { resolver = this.exceptionHandlerAdviceCache.get(advice); method = resolver.resolveMethod(exception); if (method != null) { return new InvocableHandlerMethod(advice.resolveBean(), method);
if (advice.isApplicableToBeanType(beanType)) { resolver = this.exceptionHandlerAdviceCache.get(advice); method = resolver.resolveMethod(exception); if (method != null) { return new InvocableHandlerMethod(advice.resolveBean(), method);
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); } } } } }
if (advice.isApplicableToBeanType(beanType)) { resolver = this.exceptionHandlerAdviceCache.get(advice); method = resolver.resolveMethod(exception); if (method != null) { return new InvocableHandlerMethod(advice.resolveBean(), method);
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); } } } } }
if (advice.isApplicableToBeanType(beanType)) { resolver = this.exceptionHandlerAdviceCache.get(advice); method = resolver.resolveMethod(exception); if (method != null) { return new InvocableHandlerMethod(advice.resolveBean(), method);