Support @JmsListener as a merged composed annotation
Issue: SPR-13973
This commit is contained in:
parent
c6b1f38651
commit
d572b022cc
|
@ -39,7 +39,7 @@ import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||||
import org.springframework.beans.factory.config.EmbeddedValueResolver;
|
import org.springframework.beans.factory.config.EmbeddedValueResolver;
|
||||||
import org.springframework.core.MethodIntrospector;
|
import org.springframework.core.MethodIntrospector;
|
||||||
import org.springframework.core.Ordered;
|
import org.springframework.core.Ordered;
|
||||||
import org.springframework.core.annotation.AnnotationUtils;
|
import org.springframework.core.annotation.AnnotatedElementUtils;
|
||||||
import org.springframework.jms.config.JmsListenerConfigUtils;
|
import org.springframework.jms.config.JmsListenerConfigUtils;
|
||||||
import org.springframework.jms.config.JmsListenerContainerFactory;
|
import org.springframework.jms.config.JmsListenerContainerFactory;
|
||||||
import org.springframework.jms.config.JmsListenerEndpointRegistrar;
|
import org.springframework.jms.config.JmsListenerEndpointRegistrar;
|
||||||
|
@ -206,7 +206,7 @@ public class JmsListenerAnnotationBeanPostProcessor
|
||||||
@Override
|
@Override
|
||||||
public Set<JmsListener> inspect(Method method) {
|
public Set<JmsListener> inspect(Method method) {
|
||||||
Set<JmsListener> listenerMethods =
|
Set<JmsListener> listenerMethods =
|
||||||
AnnotationUtils.getRepeatableAnnotations(method, JmsListener.class, JmsListeners.class);
|
AnnotatedElementUtils.getMergedRepeatableAnnotations(method, JmsListener.class, JmsListeners.class);
|
||||||
return (!listenerMethods.isEmpty() ? listenerMethods : null);
|
return (!listenerMethods.isEmpty() ? listenerMethods : null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue