1. 04 7月, 2016 5 次提交
    • S
      Remove unused imports · f254680f
      Sebastien Deleuze 提交于
      f254680f
    • S
      Allow to configure Tomcat baseDir · 0f01729b
      Sebastien Deleuze 提交于
      This commit also set Tomcat baseDir to java.io.tmpdir for
      integration tests in order to avoid creation of temporary directories
      in the project root.
      0f01729b
    • S
      Speed up RequestMappingIntegrationTests · b7b0313c
      Sebastien Deleuze 提交于
      Reactor Core + Spring Reactive now handle correctly
      shorter interval for the stream result test.
      b7b0313c
    • R
      Provide rich type information to ConversionService · 8c765814
      Rossen Stoyanchev 提交于
      When using the ConversionService to check and bridge to and from
      reactive types we now generallly provide the full type information
      available from method signatures. However that full type information
      is not always necessary such as when we perform additional checks on
      the generics of the reactive type (e.g. Mono<ResponseEntity>).
      
      This allows us to switch to use DefaultFormattingConversionService
      instead of GenericConversionService while also ensuring that the
      CollectionToObjectConverter doesn't think it can convert List<?> to
      any reactive type.
      
      The ObjectToObjectConverter can also interfere because it is smart
      enough to find the "from(Publisher<?>)" method on Flux and Mono.
      To make up for that on the response side we now check if a type
      is assignable to Publisher first in which case it is a simple cast.
      
      In turn that means we don't need a PublisherToFluxConverter which can
      be problematic in its own right because it can convert from Mono to
      Flux which technically doesn't lose data but switches stream semantics.
      
      Issue: #124, #128
      8c765814
    • R
      HandlerResult now requires MethodParameter as input · fb2e7960
      Rossen Stoyanchev 提交于
      HandlerAdapter's should always be able to provide a MethodParameter
      which in turn ensures that HandlerResultHandler's have full type
      information from method declarations.
      
      This commit also introduces ResolvableMethod for use in tests to make
      it easy to obtain MethodParameter return types.
      
      Issue: #128
      fb2e7960
  2. 02 7月, 2016 6 次提交
    • R
      Shorten returnValueType name in HandlerResult · dffd6d67
      Rossen Stoyanchev 提交于
      dffd6d67
    • R
      Complete reactive conversion support refactoring · df64262d
      Rossen Stoyanchev 提交于
      This commit ensures stream semantics (Flux vs Mono) are adhered to also
      on the target side.
      df64262d
    • R
      71f4dff0
    • R
      Polish "decodeOne" related changes · a68ff94f
      Rossen Stoyanchev 提交于
      a68ff94f
    • S
      Add Decoder#decodeOne() · 917a2fb9
      Sebastien Deleuze 提交于
      This commit adds a Decoder#decodeOne() method in order
      to handle correctly the streaming versus one value
      deserialization based on the type provided by the user.
      
      For example, if a List parameter is provided in a controller
      method, Jackson will be called once, while if the user provides
      a Flux or an Observable parameter, Jackson will be called for
      each element.
      917a2fb9
    • S
      Refactor reactive type conversion support · 12d7b781
      Sebastien Deleuze 提交于
      This commit replaces Reactive Streams converters for RxJava1 and
      CompletableFuture with Reactor specific ones. The results in conversion
      that preserves stream semantics, i.e. Mono vs Flux.
      
      For example this is allowed:
      Flux -> Observable
      Mono -> Single
      Mono -> CompletableFuture
      
      This is not allowed:
      Flux -> Single
      Mono -> Observable
      Flux -> CompletableFuture
      
      As a result it is now possible to check through the ConversionService
      if a target type to convert to is a stream of many or of one which is
      useful for decoding purposes.
      
      The commit also adds PublisherToFluxConverter to allow conversion from
      raw Publisher to Flux. The reverse is not necessary since Flux is a
      Publisher and it's a no-op conversion.
      12d7b781
  3. 01 7月, 2016 6 次提交
  4. 30 6月, 2016 9 次提交
  5. 29 6月, 2016 4 次提交
  6. 28 6月, 2016 3 次提交
  7. 27 6月, 2016 4 次提交
  8. 25 6月, 2016 3 次提交