1. 21 3月, 2014 6 次提交
    • B
      Set custom handshakeHandler for XML sockjs config · 26309838
      Brian Clozel 提交于
      Prior to this commit, configuring a custom handshakeHandler when setting
      up a stomp-endpoint with SockJS would not be taken into account:
      
        <websocket:stomp-endpoint path="/foo">
          <websocket:handshake-handler ref="customHandler"/>
          <websocket:sockjs/>
        </websocket:stomp-endpoint>
      
      This commit fixes this by creating and registering a
      WebsocketTransportHandler (with this handshakeHandler) as a
      transportHandler override for the SockJSService.
      
      Issue: SPR-11568
      26309838
    • R
      Add concurrent WebSocket session decorator (temp commit) · b7a97411
      Rossen Stoyanchev 提交于
      Issue: SPR-11586
      b7a97411
    • R
      ac968e94
    • R
      Ensure default value of @Payload required is enforced · d4782647
      Rossen Stoyanchev 提交于
      When no @Payload is provided, it is equivalent to @Payload with default
      attribute values. Since the default value of required=true, then
      an argument that's not annotated is required.
      d4782647
    • S
      Fix handling of required payload. · 52c3f713
      Stephane Nicoll 提交于
      A payload that is required will now throw an appropriate exception
      regardless of if a conversion is required or not.
      
      isEmptyPayload now takes the payload instead of the message
      so that both the original payload and the converted payload, if
      necessary, share the same logic.
      
      JSR-303 validation is now consistently applied.
      
      Issue: SPR-11577
      52c3f713
    • S
      Harmonize log configuration · 4cd818b9
      Stephane Nicoll 提交于
      Prior to this commit, the codebase was using a mix of log4j.xml
      and log4j.properties for test-related logging configuration. This
      can be an issue as log4j takes the xml variant first when looking
      for a default bootstrap configuration.
      
      In practice, some modules declaring the properties variant were
      taking the xml variant configuration from another module.
      
      The general structure of the configuration has also been
      harmonized to provide a standard console output as well as an
      easy way to enable trace logs for the current module.
      4cd818b9
  2. 20 3月, 2014 6 次提交
  3. 19 3月, 2014 9 次提交
  4. 18 3月, 2014 10 次提交
  5. 17 3月, 2014 9 次提交
    • S
      Favor ScriptException over SQLException · 92eb99a5
      Sam Brannen 提交于
      In ScriptUtils and related classes, SQLExceptions are now caught and
      wrapped in ScriptExceptions wherever feasible.
      
      Affected "throws" declarations have also been revised as appropriate.
      
      Issue: SPR-11564
      92eb99a5
    • J
      Extracted simple MethodInvokingBean as alternative to (and base class for)... · cf290ab4
      Juergen Hoeller 提交于
      Extracted simple MethodInvokingBean as alternative to (and base class for) MethodInvokingFactoryBean
      
      Issue: SPR-11196
      cf290ab4
    • J
      DeferredQueryInvocationHandler explicitly closes its EntityManager on garbage collection · a8577da3
      Juergen Hoeller 提交于
      Includes javadoc revision covering all supported EntityManager types as of JPA 2.1.
      
      Issue: SPR-11451
      a8577da3
    • S
      Introduce SQL script exception hierarchy · fbd25467
      Sam Brannen 提交于
      This commit continues the work began in SPR-9531 as follows.
      
       - ScriptException now extends DataAccessException.
      
       - DatabasePopulator.populate() now explicitly throws ScriptException.
      
       - Introduced UncategorizedScriptException.
      
       - DatabasePopulatorUtils.execute() now throws an
         UncategorizedScriptException instead of a
         DataAccessResourceFailureException.
      
      Issue: SPR-11564
      fbd25467
    • R
      Rename ReactorNettyTcpClient to ReactorTcpClient · f68bd5c8
      Rossen Stoyanchev 提交于
      Even though Netty is a required dependency of reactor-tcp at present,
      there is no hard dependency in the spring-messaging Reactor-based
      implementation.
      f68bd5c8
    • R
      Refine Reactor-based TCP client implementation · 2e13bf8b
      Rossen Stoyanchev 提交于
      Configure explicitly use of SynchronousDispatcher instead of the one
      used otherwise by default (RingBufferDispatcher). As a result TCP
      optations are now scoped to Netty's threads.
      
      Remove Environment field. It is no longer required to shut it down
      since we're now using SynchronousDispatcher by default.
      
      Replace connection.in() with connection.consume() when composing
      connection handling. The former creates a Stream for further composing,
      e.g. via map(), filter() but all we need is to read a message.
      
      Provide additional constructor that aceepts a pre-configured Reactor
      TcpClient instance.
      
      Issue: SPR-11531
      2e13bf8b
    • R
      Refine BrokerAvailabilityEvent behavior · 6bcbb94a
      Rossen Stoyanchev 提交于
      Add accessor for brokerAvailable in AbstractBrokerMessageHandler
      Ensure brokerAvailable is set even if eventPublisher is not
      Add tests BrokerMessageHandlerTests
      
      Turn off brokerAvailable when StompBrokerRelayMessageHandler stops
      Actually stop message handling when brokerAvailable=false
      Improve log messages
      
      Issue: SPR-11563
      6bcbb94a
    • S
      Add links to class-level Javadoc in JdbcTestUtils · 14a8f196
      Sam Brannen 提交于
      14a8f196
    • S
      Polishing · cae50c3a
      Sam Brannen 提交于
      cae50c3a