language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractStandardUpgradeStrategy.java
@@ -33,7 +33,7 @@ import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.util.Assert; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.socket.WebSocketExtension; import o...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/server/support/DefaultHandshakeHandler.java
@@ -38,7 +38,7 @@ import org.springframework.web.socket.server.HandshakeHandler; import org.springframework.web.socket.server.RequestUpgradeStrategy; import org.springframework.web.socket.support.SubProtocolCapable; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.so...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/server/support/GlassFish40RequestUpgradeStrategy.java
@@ -26,7 +26,7 @@ import org.glassfish.tyrus.spi.SPIEndpoint; import org.glassfish.tyrus.websockets.WebSocketApplication; import org.springframework.util.ClassUtils; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.socket.WebSocketExtension; /** * Extension of t...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java
@@ -40,7 +40,7 @@ import org.springframework.http.server.ServletServerHttpResponse; import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.socket.WebSocketExtension; import org.spring...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractHttpSockJsSession.java
@@ -37,7 +37,7 @@ import org.springframework.web.socket.sockjs.SockJsTransportFailureException; import org.springframework.web.socket.sockjs.support.frame.SockJsFrame; import org.springframework.web.socket.sockjs.support.frame.SockJsFrame.FrameFormat; -import org.springframework.web.socket.support.WebSocketExtension...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/WebSocketServerSockJsSession.java
@@ -28,7 +28,7 @@ import org.springframework.util.StringUtils; import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.TextMessage; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.socket.WebSocketExtension; import org.springframewor...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/main/java/org/springframework/web/socket/support/WebSocketHttpHeaders.java
@@ -25,6 +25,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.CollectionUtils; +import org.springframework.web.socket.WebSocketExtension; /** * An {@link org.springframework.http.HttpHeaders} variant that adds support for
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/test/java/org/springframework/web/socket/WebSocketExtensionTests.java
@@ -20,12 +20,11 @@ import org.hamcrest.Matchers; import org.junit.Test; -import org.springframework.web.socket.support.WebSocketExtension; import static org.junit.Assert.*; /** - * Test fixture for {@link org.springframework.web.socket.support.WebSocketExtension} + * Test fixture for {@link WebSocketExtensio...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/test/java/org/springframework/web/socket/server/DefaultHandshakeHandlerTests.java
@@ -28,7 +28,7 @@ import org.springframework.web.socket.AbstractHttpRequestTests; import org.springframework.web.socket.server.support.DefaultHandshakeHandler; import org.springframework.web.socket.support.SubProtocolCapable; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframew...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/TestSockJsSession.java
@@ -26,7 +26,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.web.socket.CloseStatus; -import org.springframework.web.socket.support.WebSocketExtension; +import org.springframework.web.socket.WebSocketExtension; import org.springframework.web.socket.WebSocketHandler; import org.springf...
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/test/java/org/springframework/web/socket/support/TestWebSocketSession.java
@@ -27,6 +27,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.WebSocketExtension; import org.springframework.web.socket.WebSocketMessage; import org.springframework.web.socket.WebSocketSession;
true
Other
spring-projects
spring-framework
69238ba66f19279de7e1a0e2ddd69fbb9fd0de05.json
Move WebSocketExtension to top-level package
spring-websocket/src/test/java/org/springframework/web/socket/support/WebSocketHttpHeadersTests.java
@@ -22,6 +22,7 @@ import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; +import org.springframework.web.socket.WebSocketExtension; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
92e144a8a8471b024d32459f23f4151023d2f9b1.json
Add a 'bill of materials' project for Maven users Add 'spring-framework-bom' meta-project that contains the other projects in a dependencyManagement section. Issue: SPR-11138
build.gradle
@@ -853,6 +853,41 @@ project("spring-aspects") { } } +project("spring-framework-bom") { + description = "Spring Framework (Bill of Materials)" + + configurations.archives.artifacts.clear() + artifacts { + // work around GRADLE-2406 by attaching text artifact + archives(file("spring-framework-bom.txt")) + } + + i...
true
Other
spring-projects
spring-framework
92e144a8a8471b024d32459f23f4151023d2f9b1.json
Add a 'bill of materials' project for Maven users Add 'spring-framework-bom' meta-project that contains the other projects in a dependencyManagement section. Issue: SPR-11138
settings.gradle
@@ -23,6 +23,7 @@ include "spring-webmvc" include "spring-webmvc-portlet" include "spring-webmvc-tiles3" include "spring-websocket" +include "spring-framework-bom" // Exposes gradle buildSrc for IDE support include "buildSrc"
true
Other
spring-projects
spring-framework
92e144a8a8471b024d32459f23f4151023d2f9b1.json
Add a 'bill of materials' project for Maven users Add 'spring-framework-bom' meta-project that contains the other projects in a dependencyManagement section. Issue: SPR-11138
spring-framework-bom/spring-framework-bom.txt
@@ -0,0 +1,2 @@ +This meta-project is used to generate a bill-of-materials POM that contains the other +projects in a dependencyManagement section.
true
Other
spring-projects
spring-framework
079fb2db737c830da62e57a02102bf0e9d70d6cb.json
Add assert AbstractStandardRequestUpgradeStrategy
spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractStandardUpgradeStrategy.java
@@ -32,6 +32,7 @@ import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServletServerHttpRequest; +import org.springframework.util.Assert; import org.springframework.web.socket.support.WebSocketExtension; import o...
false
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
build.gradle
@@ -598,6 +598,8 @@ project("spring-websocket") { testCompile("org.apache.tomcat.embed:tomcat-embed-core:8.0.0-RC5") testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}") testCompile("log4j:log4j:1.2.17") + testCompile("org.projectreactor:reactor-core:1.0.0.RELEASE") + testCompile("org.projectreactor:reactor-tc...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractBrokerRegistration.java
@@ -22,6 +22,7 @@ import java.util.List; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.handler.AbstractBrokerMessageHandler; import org.springframework.util.Assert; @@ -33,19 +34,31 @@ */ public abstra...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
@@ -47,7 +47,7 @@ * into any application component to send messages. * <p> * Sub-classes are responsible for the part of the configuration that feed messages - * to and from the client inbound/outbound channels (e.g. STOMP over WebSokcet). + * to and from the client inbound/outbound channels (e.g. STOMP over WebS...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java
@@ -20,6 +20,7 @@ import java.util.Collection; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.handler.SimpleBrokerMessageHandler; import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandle...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/SimpleBrokerRegistration.java
@@ -17,6 +17,7 @@ package org.springframework.messaging.simp.config; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.handler.SimpleBrokerMessageHandler; /** @@ -28,14 +29,17 @@ public class SimpleBrokerReg...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/StompBrokerRelayRegistration.java
@@ -17,6 +17,7 @@ package org.springframework.messaging.simp.config; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; import org.springframework.util.Assert; @@ -43,8 +4...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpAnnotationMethodMessageHandler.java
@@ -27,11 +27,13 @@ import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.context.SmartLifecycle; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.core.convert.Co...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpleBrokerMessageHandler.java
@@ -20,6 +20,7 @@ import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.SimpMessageType; import or...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/UserDestinationMessageHandler.java
@@ -20,10 +20,10 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.messaging.Message; -import org.springframework.messaging.MessageHandler; -import org.springframework.messaging.MessagingException; +import org.springframework.context.SmartLifecycle; ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -21,10 +21,7 @@ import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; -import org.springframework.messaging.Message; -import org.springframework.messaging.MessageChannel; -import org.springframework.messaging.MessageDeliveryException; -import org.springframework.messaging.MessageHa...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/support/channel/AbstractSubscribableChannel.java
@@ -43,7 +43,7 @@ public final boolean subscribe(MessageHandler handler) { /** * Whether the given {@link MessageHandler} is already subscribed. */ - protected abstract boolean hasSubscription(MessageHandler handler); + public abstract boolean hasSubscription(MessageHandler handler); /** * Subscribe the ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/main/java/org/springframework/messaging/support/channel/ExecutorSubscribableChannel.java
@@ -62,7 +62,7 @@ public Executor getExecutor() { } @Override - protected boolean hasSubscription(MessageHandler handler) { + public boolean hasSubscription(MessageHandler handler) { return this.handlers.contains(handler); }
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/StubMessageChannel.java
@@ -24,10 +24,12 @@ * * @author Rossen Stoyanchev */ -public class StubMessageChannel implements MessageChannel { +public class StubMessageChannel implements SubscribableChannel { private final List<Message<byte[]>> messages = new ArrayList<>(); + private final List<MessageHandler> handlers = new ArrayList<...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java
@@ -46,7 +46,6 @@ import org.springframework.util.MimeTypeUtils; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import static org.junit.Assert.*; @@ -319,6 +318,7 @@ protected void configureClientOutboundChannel(ChannelRegistration registration) } @Override + @Bean publ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/handler/SimpAnnotationMethodMessageHandlerTests.java
@@ -25,6 +25,7 @@ import org.springframework.context.support.StaticApplicationContext; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.handler.annotation.Header; import...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/handler/SimpleBrokerMessageHandlerTests.java
@@ -26,6 +26,7 @@ import org.mockito.MockitoAnnotations; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.mess...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/handler/UserDestinationMessageHandlerTests.java
@@ -16,21 +16,22 @@ package org.springframework.messaging.simp.handler; -import org.apache.activemq.transport.stomp.Stomp; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; +import org.mockito.Mock; import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; import org...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -32,10 +32,7 @@ import org.junit.Test; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationEventPublisher; -import org.springframework.messaging.Message; -import org.springframework.messaging.MessageDeliveryException; -import org.springframework.messaging.MessageHand...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerTests.java
@@ -53,7 +53,8 @@ public void setup() { this.tcpClient = new StubTcpOperations(); - this.brokerRelay = new StompBrokerRelayMessageHandler(new StubMessageChannel(), Arrays.asList("/topic")); + this.brokerRelay = new StompBrokerRelayMessageHandler(new StubMessageChannel(), + new StubMessageChannel(), new Stub...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java
@@ -21,10 +21,8 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.messaging.Message; -import org.springframework.messaging.MessageChannel; -import org.springframework.messaging.MessageHandler; -import org.springframework.messaging.MessagingException;...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/WebMvcStompEndpointRegistry.java
@@ -55,8 +55,10 @@ public class WebMvcStompEndpointRegistry implements StompEndpointRegistry { public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, UserSessionRegistry userSessionRegistry, TaskScheduler defaultSockJsTaskScheduler) { + Assert.notNull(webSocketHandler); Assert.notNull(userS...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/WebSocketMessageBrokerConfigurationSupport.java
@@ -53,9 +53,7 @@ public HandlerMapping stompWebSocketHandlerMapping() { @Bean public WebSocketHandler subProtocolWebSocketHandler() { - SubProtocolWebSocketHandler handler = new SubProtocolWebSocketHandler(clientInboundChannel()); - clientOutboundChannel().subscribe(handler); - return handler; + return new S...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/xml/MessageBrokerBeanDefinitionParser.java
@@ -0,0 +1,436 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/xml/WebSocketNamespaceHandler.java
@@ -0,0 +1,44 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/xml/package-info.java
@@ -0,0 +1,20 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/server/config/xml/HandlersBeanDefinitionParser.java
@@ -0,0 +1,194 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/server/config/xml/WebSocketNamespaceUtils.java
@@ -0,0 +1,178 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/java/org/springframework/web/socket/server/config/xml/package-info.java
@@ -0,0 +1,20 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/resources/META-INF/spring.handlers
@@ -0,0 +1,17 @@ +# +# Copyright 2002-2013 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unle...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/resources/META-INF/spring.schemas
@@ -0,0 +1,18 @@ +# +# Copyright 2002-2013 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unle...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/resources/META-INF/spring.tooling
@@ -0,0 +1,4 @@ +# Tooling related information for the mvc namespace +http\://www.springframework.org/schema/websocket@name=websocket Namespace +http\://www.springframework.org/schema/websocket@prefix=websocket +http\://www.springframework.org/schema/websocket@icon=org/springframework/web/socket/server/config/xml/sprin...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/main/resources/org/springframework/web/socket/server/config/xml/spring-websocket-4.0.xsd
@@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandlerTests.java
@@ -23,6 +23,7 @@ import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.web.socket.support.TestWebSocketSession; import static org.mockito.Mockito.*; @@ -45,14 +46,...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/config/WebMvcStompEndpointRegistrationTests.java
@@ -51,7 +51,8 @@ public class WebMvcStompEndpointRegistrationTests { @Before public void setup() { - this.wsHandler = new SubProtocolWebSocketHandler(new ExecutorSubscribableChannel()); + this.wsHandler = new SubProtocolWebSocketHandler( + new ExecutorSubscribableChannel(), new ExecutorSubscribableChannel()...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/config/WebMvcStompEndpointRegistryTests.java
@@ -22,6 +22,7 @@ import org.junit.Test; import org.mockito.Mockito; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.handler.DefaultUserSessionRegistry; import org.springframework.messaging.simp.handler.UserSe...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/config/xml/MessageBrokerBeanDefinitionParserTests.java
@@ -0,0 +1,267 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/java/org/springframework/web/socket/server/config/xml/HandlersBeanDefinitionParserTests.java
@@ -0,0 +1,291 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/messaging/config/xml/websocket-config-broker-customchannels.xml
@@ -0,0 +1,50 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/messaging/config/xml/websocket-config-broker-relay.xml
@@ -0,0 +1,40 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/messaging/config/xml/websocket-config-broker-simple.xml
@@ -0,0 +1,35 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/server/config/xml/websocket-config-handlers-attributes.xml
@@ -0,0 +1,40 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/server/config/xml/websocket-config-handlers-sockjs-attributes.xml
@@ -0,0 +1,50 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/server/config/xml/websocket-config-handlers-sockjs.xml
@@ -0,0 +1,33 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
10f5d96a783f85fcdba2ce9b846c751a40bd7fe0.json
Add XML namespace for WebSocket config This commit adds an XML namespace equivalent of @EnableWebSocket and @EnableWebSocketMessageBroker. Those are <websocket:handlers> and <websocket:message-broker> respectively. Examples can be found in the test suite. This commit also alters the way MessageHandler's subscribe to...
spring-websocket/src/test/resources/org/springframework/web/socket/server/config/xml/websocket-config-handlers.xml
@@ -0,0 +1,35 @@ +<!-- + ~ Copyright 2002-2013 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICEN...
true
Other
spring-projects
spring-framework
b0b40dade132577533bfbab34dbe8e03d9c613b6.json
Detect cache hit with multiple @Cachables Fix CacheAspectSupport to consider a cache hit from any of the multiple @Cachables that may have been specified using the @Caching annotation. Prior to this commit the following scenario would never produce a hit: @Caching(cacheable = { @Cacheable(value = "c1", unless = "...
spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java
@@ -261,7 +261,7 @@ private void collectPutRequests(Collection<CacheOperationContext> contexts, for (CacheOperationContext context : contexts) { if (isConditionPassing(context, result)) { Object key = generateKey(context, result); - if (!whenNotInCache || findInCaches(context, key) == null) { + if (!w...
true
Other
spring-projects
spring-framework
b0b40dade132577533bfbab34dbe8e03d9c613b6.json
Detect cache hit with multiple @Cachables Fix CacheAspectSupport to consider a cache hit from any of the multiple @Cachables that may have been specified using the @Caching annotation. Prior to this commit the following scenario would never produce a hit: @Caching(cacheable = { @Cacheable(value = "c1", unless = "...
spring-context/src/test/java/org/springframework/cache/CacheReproTests.java
@@ -0,0 +1,104 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
@@ -59,6 +59,10 @@ public abstract class AbstractMessageBrokerConfiguration { "com.fasterxml.jackson.databind.ObjectMapper", AbstractMessageBrokerConfiguration.class.getClassLoader()); + private ChannelRegistration clientInboundChannelRegistration; + + private ChannelRegistration clientOutboundChannelRegistrati...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/ChannelRegistration.java
@@ -0,0 +1,74 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java
@@ -42,6 +42,8 @@ public class MessageBrokerRegistry { private String userDestinationPrefix; + private ChannelRegistration brokerChannelRegistration = new ChannelRegistration(); + public MessageBrokerRegistry(MessageChannel clientOutboundChannel) { Assert.notNull(clientOutboundChannel); @@ -103,6 +105,17 @...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/TaskExecutorRegistration.java
@@ -0,0 +1,87 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/main/java/org/springframework/messaging/support/channel/ExecutorSubscribableChannel.java
@@ -57,6 +57,10 @@ public ExecutorSubscribableChannel(Executor executor) { } + public Executor getExecutor() { + return this.executor; + } + @Override protected boolean hasSubscription(MessageHandler handler) { return this.handlers.contains(handler);
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java
@@ -36,13 +36,17 @@ import org.springframework.messaging.simp.stomp.StompHeaderAccessor; import org.springframework.messaging.support.MessageBuilder; import org.springframework.messaging.support.channel.AbstractSubscribableChannel; +import org.springframework.messaging.support.channel.ChannelInterceptor; +import org...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/DelegatingWebSocketMessageBrokerConfiguration.java
@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; +import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.ut...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/config/WebSocketMessageBrokerConfigurer.java
@@ -17,6 +17,7 @@ package org.springframework.web.socket.messaging.config; +import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; /** @@ -35,6 +36,22 @@ public interface WebSocketMessageBrokerConfigurer { */ void regis...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/SimpAnnotationMethodIntegrationTests.java
@@ -36,6 +36,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.messaging.handler.annotation.MessageExceptionHandler; import org.springframework.messaging.handler.annotation.MessageMapping; +import org.springframework.messaging.simp.config.ChannelRegistration; import org.sp...
true
Other
spring-projects
spring-framework
690051f46cad97e4fcfb5073be63ea06e02ac01c.json
Add ability to customize message channels @EnableWebSocketMessageBroker message channel configuration can now be customized via WebSocketMessageBrokerConfigurer. It is necessary to make this easy and even required as part of the basic configuration since by default the message channels are backed by a thread pool of s...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/config/WebSocketMessageBrokerConfigurationSupportTests.java
@@ -27,6 +27,7 @@ import org.springframework.messaging.handler.annotation.SendTo; import org.springframework.messaging.simp.SimpMessageType; import org.springframework.messaging.simp.annotation.SubscribeMapping; +import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messag...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
build.gradle
@@ -93,8 +93,9 @@ configure(allprojects) { project -> "http://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/", "http://ehcache.org/apidocs/", "http://quartz-scheduler.org/api/2.1.7/", - "http://jackson.codehaus.org/1.9.12/javadoc/", - "http://fasterxml.github.com/jackson-core/javadoc/2.2.2/", + "http:...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/factory/config/CustomEditorConfigurer.java
@@ -91,8 +91,6 @@ * @see ConfigurableBeanFactory#addPropertyEditorRegistrar * @see ConfigurableBeanFactory#registerCustomEditor * @see org.springframework.validation.DataBinder#registerCustomEditor - * @see org.springframework.web.servlet.mvc.BaseCommandController#setPropertyEditorRegistrars - * @see org.springfr...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/propertyeditors/CustomBooleanEditor.java
@@ -29,13 +29,11 @@ * them in the UI form. * * <p>In web MVC code, this editor will typically be registered with - * {@code binder.registerCustomEditor} calls in an implementation - * of BaseCommandController's {@code initBinder} method. + * {@code binder.registerCustomEditor} calls. * * @author Juergen Hoell...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/propertyeditors/CustomDateEditor.java
@@ -33,15 +33,13 @@ * and rendering them in the UI form. * * <p>In web MVC code, this editor will typically be registered with - * {@code binder.registerCustomEditor} calls in a custom - * {@code initBinder} method. + * {@code binder.registerCustomEditor}. * * @author Juergen Hoeller * @since 28.04.2003 *...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/propertyeditors/CustomNumberEditor.java
@@ -34,15 +34,13 @@ * and rendering them in the UI form. * * <p>In web MVC code, this editor will typically be registered with - * {@code binder.registerCustomEditor} calls in a custom - * {@code initBinder} method. + * {@code binder.registerCustomEditor} calls. * * @author Juergen Hoeller * @since 06.06.20...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/propertyeditors/StringTrimmerEditor.java
@@ -28,7 +28,6 @@ * * @author Juergen Hoeller * @see org.springframework.validation.DataBinder#registerCustomEditor - * @see org.springframework.web.servlet.mvc.BaseCommandController#initBinder */ public class StringTrimmerEditor extends PropertyEditorSupport {
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-beans/src/main/java/org/springframework/beans/support/MutableSortDefinition.java
@@ -146,7 +146,7 @@ public void setToggleAscendingOnProperty(boolean toggleAscendingOnProperty) { /** * Return whether to toggle the ascending flag if the same property gets set again - * (that is, {@link #setProperty} gets called with already set property name again). + * (that is, {@code setProperty} gets ca...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context-support/src/main/java/org/springframework/ui/freemarker/FreeMarkerConfigurationFactory.java
@@ -194,7 +194,6 @@ public void setTemplateLoaderPath(String templateLoaderPath) { * @see org.springframework.context.ApplicationContext#getResource * @see freemarker.template.Configuration#setDirectoryForTemplateLoading * @see SpringTemplateLoader - * @see #setTemplateLoaders */ public void setTemplateL...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context-support/src/main/java/org/springframework/ui/velocity/VelocityEngineFactory.java
@@ -53,8 +53,8 @@ * to the Spring application context. * * <p>If "overrideLogging" is true (the default), the VelocityEngine will be - * configured to log via Commons Logging, that is, using the Spring-provided - * {@link CommonsLoggingLogSystem} as log system. + * configured to log via Commons Logging, that is, ...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/context/annotation/LoadTimeWeavingConfiguration.java
@@ -34,7 +34,7 @@ * {@code @Configuration} class that registers a {@link LoadTimeWeaver} bean. * * <p>This configuration class is automatically imported when using the - * @{@link EnableLoadTimeWeaving} annotation. See {@code @EnableLoadTimeWeaving} + * {@link EnableLoadTimeWeaving} annotation. See {@code @Enable...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/context/annotation/MBeanExportConfiguration.java
@@ -39,7 +39,7 @@ * {@code @Configuration} class that registers a {@link AnnotationMBeanExporter} bean. * * <p>This configuration class is automatically imported when using the - * @{@link EnableMBeanExport} annotation. See its javadoc for complete usage details. + * {@link EnableMBeanExport} annotation. See its ...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaver.java
@@ -26,7 +26,7 @@ /** * {@link LoadTimeWeaver} implementation for GlassFish's - * {@link org.glassfish.api.deployment.InstrumentableClassLoader InstrumentableClassLoader}. + * {@code org.glassfish.api.deployment.InstrumentableClassLoader InstrumentableClassLoader}. * * <p>As of Spring 4.0, this weaver supports...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/instrument/classloading/tomcat/package-info.java
@@ -1,8 +1,5 @@ - /** - * * Support for class instrumentation on Tomcat. - * */ package org.springframework.instrument.classloading.tomcat;
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/validation/AbstractBindingResult.java
@@ -262,15 +262,11 @@ public Class<?> getFieldType(String field) { * Adding things to the map and then re-calling this method will not work. * <p>The attributes in the model Map returned by this method are usually * included in the ModelAndView for a form view that uses Spring's bind tag, - * which needs acce...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-context/src/main/java/org/springframework/validation/BindingResult.java
@@ -73,7 +73,6 @@ public interface BindingResult extends Errors { * @see #MODEL_KEY_PREFIX * @see org.springframework.web.servlet.ModelAndView * @see org.springframework.web.servlet.tags.BindTag - * @see org.springframework.web.servlet.mvc.SimpleFormController */ Map<String, Object> getModel();
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/asm/Label.java
@@ -35,7 +35,7 @@ * designates the <i>instruction</i> that is just after. Note however that there * can be other elements between a label and the instruction it designates (such * as other labels, stack map frames, line numbers, etc.). - * + * * @author Eric Bruneton */ public class Label { @@ -111,13 +111,...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/core/ResolvableType.java
@@ -103,7 +103,7 @@ public final class ResolvableType implements Serializable { private TypeProvider typeProvider; /** - * The {@link VariableResolver} to use or {@code null} if no resolver is available. + * The {@code VariableResolver} to use or {@code null} if no resolver is available. */ private final V...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
@@ -261,8 +261,8 @@ private boolean matchStrings(String pattern, String str, Map<String, String> uri /** * Build or retrieve an {@link AntPathStringMatcher} for the given pattern. * <p>The default implementation checks this AntPathMatcher's internal cache - * (see {@link #setCachePatterns}, creating a new AntP...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/InvalidMimeTypeException.java
@@ -17,7 +17,7 @@ package org.springframework.util; /** - * Exception thrown from {@link MediaType#parseMimeType(String)} in case of + * Exception thrown from {@link MimeTypeUtils#parseMimeType(String)} in case of * encountering an invalid content type specification String. * * @author Juergen Hoeller
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/MimeType.java
@@ -33,17 +33,15 @@ * other Internet protocols including HTTP. This class however does not contain support * the q-parameters used in HTTP content negotiation. Those can be found in the sub-class * {@code org.springframework.http.MediaType} in the {@code spring-web} module. - * <p> - * Consists of a {@linkplain #...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
@@ -28,23 +28,21 @@ import org.springframework.util.MimeType.SpecificityComparator; - - /** * * @author Arjen Poutsma * @author Rossen Stoyanchev * @since 4.0 */ -public class MimeTypeUtils { +public abstract class MimeTypeUtils { /** * Public constant mime type that includes all media ranges (i....
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/concurrent/FutureAdapter.java
@@ -26,7 +26,7 @@ /** * Abstract class that adapts a {@link Future} parameterized over S into a {@code * Future} parameterized over T. All methods are delegated to the adaptee, where {@link - * #get()} and {@link #get(long, TimeUnit)} call {@@link #adapt(Object)} on the adaptee's + * #get()} and {@link #get(long, ...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/concurrent/ListenableFuture.java
@@ -22,7 +22,7 @@ * Extends the {@link Future} interface with the capability to accept completion * callbacks. If the future has already completed when the callback is added, the * callback will be triggered immediately. - * <p>Inspired by {@link com.google.common.util.concurrent.ListenableFuture}. + * <p>Inspire...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java
@@ -22,7 +22,7 @@ * Abstract class that adapts a {@link ListenableFuture} parameterized over S into a * {@code ListenableFuture} parameterized over T. All methods are delegated to the * adaptee, where {@link #get()}, {@link #get(long, java.util.concurrent.TimeUnit)}, and - * {@link ListenableFutureCallback#onSucc...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureCallbackRegistry.java
@@ -23,7 +23,9 @@ /** * Registry for {@link ListenableFutureCallback} instances. - * <p>Inspired by {@link com.google.common.util.concurrent.ExecutionList}. + * + * <p>Inspired by {@code com.google.common.util.concurrent.ExecutionList}. + * * @author Arjen Poutsma * @since 4.0 */
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-instrument-tomcat/src/main/java/org/springframework/instrument/classloading/tomcat/package-info.java
@@ -1,8 +0,0 @@ - -/** - * - * Support for class instrumentation on Apache Tomcat. - * - */ -package org.springframework.instrument.classloading.tomcat; -
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-jms/src/main/java/org/springframework/jms/core/JmsTemplate.java
@@ -46,8 +46,8 @@ * * <p>If you want to use dynamic destination creation, you must specify * the type of JMS destination to create, using the "pubSubDomain" property. - * For other operations, this is not necessary, in contrast to when working - * with {@link JmsTemplate102}. Point-to-Point (Queues) is the defaul...
true
Other
spring-projects
spring-framework
a31ac882c54b9a32345274b09647b7423ecf0839.json
Fix various javadoc warnings
spring-jms/src/main/java/org/springframework/jms/core/support/JmsGatewaySupport.java
@@ -63,11 +63,10 @@ public final void setConnectionFactory(ConnectionFactory connectionFactory) { * Create a JmsTemplate for the given ConnectionFactory. * Only invoked if populating the gateway with a ConnectionFactory reference. * <p>Can be overridden in subclasses to provide a JmsTemplate instance with - *...
true