org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver Java Examples
The following examples show how to use
org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketAnnotationMethodMessageHandler.java From spring-analysis-note with MIT License | 6 votes |
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); } } } } }
Example #2
Source File: WebSocketAnnotationMethodMessageHandler.java From java-technology-stack with MIT License | 6 votes |
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); } } } } }
Example #3
Source File: WebSocketAnnotationMethodMessageHandler.java From spring4-understanding with Apache License 2.0 | 5 votes |
private void initMessagingAdviceCache(List<MessagingAdviceBean> beans) { if (beans == null) { return; } for (MessagingAdviceBean bean : beans) { Class<?> beanType = bean.getBeanType(); AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(beanType); if (resolver.hasExceptionMappings()) { registerExceptionHandlerAdvice(bean, resolver); logger.info("Detected @MessageExceptionHandler methods in " + bean); } } }
Example #4
Source File: RqueueMessageHandler.java From rqueue with Apache License 2.0 | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor( Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }
Example #5
Source File: SimpAnnotationMethodMessageHandler.java From spring-analysis-note with MIT License | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }
Example #6
Source File: MessageMappingMessageHandler.java From spring-analysis-note with MIT License | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionMethodResolverFor(Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }
Example #7
Source File: SimpAnnotationMethodMessageHandler.java From java-technology-stack with MIT License | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }
Example #8
Source File: SimpAnnotationMethodMessageHandler.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }
Example #9
Source File: QueueMessageHandler.java From spring-cloud-aws with Apache License 2.0 | 4 votes |
@Override protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor( Class<?> beanType) { return new AnnotationExceptionHandlerMethodResolver(beanType); }