MessagingAnnotationPostProcessor now requires the class-level @MessageEndpoint annotation.
This commit is contained in:
@@ -425,6 +425,7 @@ public class MessagingAnnotationPostProcessorTests {
|
||||
}
|
||||
|
||||
|
||||
@MessageEndpoint
|
||||
@ChannelAdapter("testChannel")
|
||||
private static class TargetAnnotationTestBean {
|
||||
|
||||
@@ -525,6 +526,7 @@ public class MessagingAnnotationPostProcessorTests {
|
||||
}
|
||||
|
||||
|
||||
@MessageEndpoint
|
||||
private static class HandlerAnnotatedBean {
|
||||
|
||||
@Handler
|
||||
@@ -542,6 +544,7 @@ public class MessagingAnnotationPostProcessorTests {
|
||||
}
|
||||
|
||||
|
||||
@MessageEndpoint
|
||||
private static class CustomHandlerAnnotatedBean {
|
||||
|
||||
@CustomHandler
|
||||
@@ -552,6 +555,7 @@ public class MessagingAnnotationPostProcessorTests {
|
||||
}
|
||||
|
||||
|
||||
@MessageEndpoint
|
||||
@ChannelAdapter("testChannel")
|
||||
@Poller(period = 1000, initialDelay = 0, maxMessagesPerPoll = 1)
|
||||
private static class ChannelAdapterAnnotationTestBean {
|
||||
@@ -563,6 +567,7 @@ public class MessagingAnnotationPostProcessorTests {
|
||||
}
|
||||
|
||||
|
||||
@MessageEndpoint
|
||||
private static class HandlerWithTransformers {
|
||||
|
||||
@Transformer
|
||||
|
||||
@@ -17,10 +17,12 @@
|
||||
package org.springframework.integration.config.annotation;
|
||||
|
||||
import org.springframework.integration.annotation.Handler;
|
||||
import org.springframework.integration.annotation.MessageEndpoint;
|
||||
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
@MessageEndpoint
|
||||
public class SimpleHandlerTestBean {
|
||||
|
||||
@Handler
|
||||
|
||||
Reference in New Issue
Block a user