Java Code Examples for org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver

The following examples show how to use org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver. These examples are extracted from open source projects. 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
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
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
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 Project: rqueue   Source File: RqueueMessageHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(
    Class<?> beanType) {
  return new AnnotationExceptionHandlerMethodResolver(beanType);
}
 
Example 5
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) {
	return new AnnotationExceptionHandlerMethodResolver(beanType);
}
 
Example 6
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionMethodResolverFor(Class<?> beanType) {
	return new AnnotationExceptionHandlerMethodResolver(beanType);
}
 
Example 7
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) {
	return new AnnotationExceptionHandlerMethodResolver(beanType);
}
 
Example 8
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(Class<?> beanType) {
	return new AnnotationExceptionHandlerMethodResolver(beanType);
}
 
Example 9
Source Project: spring-cloud-aws   Source File: QueueMessageHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected AbstractExceptionHandlerMethodResolver createExceptionHandlerMethodResolverFor(
		Class<?> beanType) {
	return new AnnotationExceptionHandlerMethodResolver(beanType);
}