diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageMappingInfo.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageMappingInfo.java similarity index 98% rename from spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageMappingInfo.java rename to spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageMappingInfo.java index 4464fb7069..06d0a7c4ec 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageMappingInfo.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageMappingInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.messaging.simp.handler; +package org.springframework.messaging.simp; import org.springframework.messaging.Message; import org.springframework.messaging.handler.DestinationPatternsMessageCondition; diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageCondition.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageTypeMessageCondition.java similarity index 94% rename from spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageCondition.java rename to spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageTypeMessageCondition.java index fe6f4ab1e1..a5af929966 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageCondition.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageTypeMessageCondition.java @@ -14,12 +14,10 @@ * limitations under the License. */ -package org.springframework.messaging.simp.handler; +package org.springframework.messaging.simp; import org.springframework.messaging.Message; import org.springframework.messaging.handler.AbstractMessageCondition; -import org.springframework.messaging.simp.SimpMessageHeaderAccessor; -import org.springframework.messaging.simp.SimpMessageType; import org.springframework.util.Assert; import java.util.Arrays; diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java index 1d53770fc9..0db464ba71 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java @@ -56,8 +56,8 @@ import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.SimpMessageSendingOperations; import org.springframework.messaging.simp.SimpMessagingTemplate; import org.springframework.messaging.simp.annotation.SubscribeMapping; -import org.springframework.messaging.simp.handler.SimpMessageMappingInfo; -import org.springframework.messaging.simp.handler.SimpMessageTypeMessageCondition; +import org.springframework.messaging.simp.SimpMessageMappingInfo; +import org.springframework.messaging.simp.SimpMessageTypeMessageCondition; import org.springframework.messaging.support.MessageBuilder; import org.springframework.stereotype.Controller; import org.springframework.util.AntPathMatcher; diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java index dece80b408..b165f5e802 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java @@ -28,7 +28,6 @@ import org.springframework.context.ApplicationEventPublisherAware; import org.springframework.context.SmartLifecycle; import org.springframework.messaging.Message; import org.springframework.messaging.MessageHandler; -import org.springframework.messaging.simp.BrokerAvailabilityEvent; import org.springframework.util.CollectionUtils; /** diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/BrokerAvailabilityEvent.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java similarity index 96% rename from spring-messaging/src/main/java/org/springframework/messaging/simp/BrokerAvailabilityEvent.java rename to spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java index ddc202637e..24f836f8fe 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/BrokerAvailabilityEvent.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.messaging.simp; +package org.springframework.messaging.simp.broker; import org.springframework.context.ApplicationEvent; diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/package-info.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/package-info.java deleted file mode 100644 index 888d58bde3..0000000000 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/handler/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * MessageHandler implementation and supporting classes for message processing. - */ -package org.springframework.messaging.simp.handler; diff --git a/spring-messaging/src/test/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageConditionTests.java b/spring-messaging/src/test/java/org/springframework/messaging/simp/SimpMessageTypeMessageConditionTests.java similarity index 96% rename from spring-messaging/src/test/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageConditionTests.java rename to spring-messaging/src/test/java/org/springframework/messaging/simp/SimpMessageTypeMessageConditionTests.java index 0b28f83cdc..a492561b28 100644 --- a/spring-messaging/src/test/java/org/springframework/messaging/simp/handler/SimpMessageTypeMessageConditionTests.java +++ b/spring-messaging/src/test/java/org/springframework/messaging/simp/SimpMessageTypeMessageConditionTests.java @@ -14,12 +14,13 @@ * limitations under the License. */ -package org.springframework.messaging.simp.handler; +package org.springframework.messaging.simp; import org.junit.Test; import org.springframework.messaging.Message; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.SimpMessageType; +import org.springframework.messaging.simp.SimpMessageTypeMessageCondition; import org.springframework.messaging.support.MessageBuilder; import static org.junit.Assert.*; diff --git a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java index 4f425c2190..996db164b7 100644 --- a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java +++ b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java @@ -38,7 +38,7 @@ import org.springframework.messaging.MessageDeliveryException; import org.springframework.messaging.MessageHandler; import org.springframework.messaging.MessagingException; import org.springframework.messaging.StubMessageChannel; -import org.springframework.messaging.simp.BrokerAvailabilityEvent; +import org.springframework.messaging.simp.broker.BrokerAvailabilityEvent; import org.springframework.messaging.simp.SimpMessageType; import org.springframework.messaging.support.ExecutorSubscribableChannel; import org.springframework.messaging.support.MessageBuilder;