1. 19 10月, 2013 1 次提交
  2. 18 10月, 2013 1 次提交
  3. 05 10月, 2013 2 次提交
    • J
      Comprehensive update to the framework's TimeZone handling, including a new... · 4574528a
      Juergen Hoeller 提交于
      Comprehensive update to the framework's TimeZone handling, including a new TimeZoneAwareLocaleContext and a LocaleContextResolver for Spring MVC
      
      A few noteworthy minor changes: LocaleContext.getLocale() may return null in special cases (not by default), which our own accessing classes are able to handle now. If there is a non-null TimeZone user setting, we're exposing it to all collaborating libraries, in particular to JSTL, Velocity and JasperReports. Our JSR-310 and Joda-Time support falls back to checking the general LocaleContext TimeZone now, adapting it to their time zone types, if no more specific setting has been provided. Our DefaultConversionService has TimeZone<->ZoneId converters registered. And finally, we're using a custom parseTimeZoneString method now that doesn't accept the TimeZone.getTimeZone(String) GMT fallback for an invalid time zone id anymore.
      
      Issue: SPR-1528
      4574528a
    • J
      bd4c64af
  4. 30 8月, 2013 1 次提交
  5. 24 7月, 2013 1 次提交
  6. 02 7月, 2013 1 次提交
    • P
      Add ConversionService support for ByteBuffers · 9dba73df
      Phillip Webb 提交于
      Add ByteBufferConverter that is registered by default with the
      DefaultConversionService. Allows conversion from/to a ByteBuffer and
      byte[] or to any type that can be converted via a byte[].
      
      Issue: SPR-10712
      9dba73df
  7. 14 5月, 2013 1 次提交
  8. 26 2月, 2013 1 次提交
    • P
      StringToEnumConverterFactory class from enum value · 9a6c6b9e
      Phillip Webb 提交于
      Update StringToEnumConverterFactory to search superclasses until
      Class.isEnum() returns true. This allows conversion when the
      enum class is obtained from the enum value:
      
          public static enum SubFoo {
              BAR { String s() { return "x"; } };
              abstract String s();
          }
      
          conversionService.convert("BAR", SubFoo.BAR.getClass())
      
      This fix is particularly important when converting collections of
      enums.
      
      Issue: SPR-10329
      9a6c6b9e
  9. 23 1月, 2013 2 次提交
    • S
      Polish Javadoc in TypeDescriptor · a1aba23a
      Sam Brannen 提交于
      - fix @since version in array()
      - format method-level Javadoc
      - unescape HTML-escaped angle brackets with {@code} blocks
      a1aba23a
    • P
      Allow TypeDescriptor array construction · 9c032d52
      Phillip Webb 提交于
      Add a static factory method that can be used to create an array
      TypeDescriptor with a specific element type. Allows array types
      with generic elements to be constructed.
      
      Issue: SPR-9792
      9c032d52
  10. 02 1月, 2013 1 次提交
  11. 29 12月, 2012 6 次提交
  12. 23 12月, 2012 2 次提交
    • P
      Fix GenericConversionService search algorithm · 1abb7f66
      Phillip Webb 提交于
      Previously the algorithm used by GenericConversionService to find
      converters incorrectly searched for interfaces working up from the
      base class. This caused particular problems with custom List
      converters as as the Collection interface would be considered before
      the List interface giving CollectionToObjectConverter precedence
      over the custom converter.
      
      The updated algorithm restores the class search order to behave in the
      same way as Spring 3.1.
      
      Issue: SPR-10116
      Backport-Issue: SPR-10117
      Backport-Commit: aa914497
      1abb7f66
    • P
      Fix GenericConversionService search algorithm · aa914497
      Phillip Webb 提交于
      Previously the algorithm used by GenericConversionService to find
      converters incorrectly searched for interfaces working up from the
      base class. This caused particular problems with custom List
      converters as as the Collection interface would be considered before
      the List interface giving CollectionToObjectConverter precedence
      over the custom converter.
      
      The updated algorithm restores the class search order to behave in the
      same way as Spring 3.1.
      
      Issue: SPR-10116
      aa914497
  13. 13 12月, 2012 1 次提交
  14. 12 12月, 2012 1 次提交
    • C
      Eliminate all Javadoc warnings · f2653470
      Chris Beams 提交于
       - Support external Javadoc links using Gradle's javadoc.options.links
      
       - Fix all other Javadoc warnings, such as typos, references to
         non-existent (or no longer existent) types and members, etc,
         including changes related to the Quartz 2.0 upgrade (SPR-8275) and
         adding the HTTP PATCH method (SPR-7985).
      
       - Suppress all output for project-level `javadoc` tasks in order to
         hide false-negative warnings about cross-module @see and @link
         references (e.g. spring-core having a @see reference to spring-web).
         Use the `--info` (-i) flag to gradle at any time to see project-level
         javadoc warnings without running the entire `api` task. e.g.
         `gradle :spring-core:javadoc -i`
      
       - Favor root project level `api` task for detection of legitimate
         Javadoc warnings. There are now zero Javadoc warnings across the
         entirety of spring-framework. Goal: keep it that way.
      
       - Remove all @link and @see references to types and members that exist
         only in Servlet <= 2.5 and Hibernate <= 4.0, favoring 3.0+ and 4.0+
         respectively. This is necessary because only one version of each of
         these dependencies can be present on the global `api` javadoc task's
         classpath. To that end, the `api` task classpath has now been
         customized to ensure that the Servlet 3 API and Hibernate Core 4 jars
         have precedence.
      
       - SPR-8896 replaced our dependency on aspectjrt with a dependency on
         aspectjweaver, which is fine from a POM point of view, but causes
         a spurious warning to be emitted from the ant iajc task that it
         "cannot find aspectjrt on the classpath" - even though aspectjweaver
         is perfectly sufficient. In the name of keeping the console quiet, a
         new `rt` configuration has been added, and aspectjrt added as a
         dependency to it. In turn, configurations.rt.asPath is appended to
         the iajc classpath during both compileJava and compileTestJava for
         spring-aspects.
      
      Issue: SPR-10078, SPR-8275, SPR-7985, SPR-8896
      f2653470
  15. 04 11月, 2012 2 次提交
  16. 02 11月, 2012 1 次提交
  17. 31 10月, 2012 3 次提交
    • J
    • P
      Revert ConversionService SPI interface · 22dfe93f
      Phillip Webb 提交于
      Remove canBypassConvert() methods from the ConversionService SPI
      interface, restoring it to the previous Spring 3.1 incarnation.
      
      Bypassing conversion is now only supported when using a
      GenericConversionService.
      
      Issue: SPR-9566
      22dfe93f
    • P
      Avoid NPE in ObjectToObjectConverter · 31331e6a
      Phillip Webb 提交于
      Bypass ObjectToObject conversion when source and object types are
      identical and protect against a null source object.
      
      Prior to this commit the TypeDescriptor was used to determine if
      conversion was necessary.  This caused issues when comparing a
      descriptor with annotations to one without.  The updated code
      now compares using TypeDescriptor.getType().
      
      The ObjectToObject converter will now no longer attempt to convert
      null source objects.
      
      Issue: SPR-9933
      31331e6a
  18. 30 10月, 2012 6 次提交
    • P
      Resolve Collection element types during conversion · 5a1f924a
      Phillip Webb 提交于
      TypeDescriptor.valueOf now uses GenericCollectionTypeResolver to resolve
      Collection and Map element types whereas previously this information was
      simply not supported, i.e. null.
      
      Issue: SPR-9257
      5a1f924a
    • C
      Review and polish pull request #132 · 222eec58
      Chris Beams 提交于
      Content:
      
       - Rename Conditional{Conversion=>Converter}
       - Add @since tags where appropriate
       - Update Apache date headers to read 2002-2012 (not just 2012)
       - Correct minor Javadoc typo
      
      Style:
      
       - Polish line breaks / whitespace
       - Use wildcard static imports where appropriate
      
      Issue: SPR-9566, SPR-9692, SPR-9928, SPR-9927
      222eec58
    • P
      Support conversion from Enum Interface · f82c6ed7
      Phillip Webb 提交于
      EnumToStringConverter in now conditional and only matches Enums that
      do not implement interfaces that can be converted.
      
      Issue: SPR-9692
      f82c6ed7
    • P
      Bypass conversion when possible · a27d1a28
      Phillip Webb 提交于
      Prior to this commit conversion between like types would often result in
      a copy of the object. This can be problematic in the case of large byte
      arrays and objects that do not have a default constructor.
      
      The ConversionService SPI now includes canBypassConvert methods that can
      be used to deduce when conversion is not needed. Several existing
      converters have been updated to ensure they only apply when source and
      target types differ.
      
      This change introduces new methods to the ConversionService that will
      break existing implementations. However, it anticipated that most users
      are consuming the ConversionService interface rather then extending it.
      
      Issue: SPR-9566
      a27d1a28
    • P
      Extend conditional conversion support · f13e3ad7
      Phillip Webb 提交于
      Introduce new ConditionalConversion interface that can be applied to
      Converter, ConverterFactory or GenericConverter interfaces to make
      them conditional. Prior to this commit the only
      ConditionalGenericConverter could be conditional.
      
      Issue: SPR-9928
      f13e3ad7
    • P
      Refactor GenericConversionService · 4dc28959
      Phillip Webb 提交于
      Refactor internal workings of GenericConversionService in order to
      better support future enhancements. This commit should not affect
      existing behavior.
      
      Issue: SPR-9927
      4dc28959
  19. 27 10月, 2012 1 次提交
  20. 13 10月, 2012 4 次提交
  21. 11 10月, 2012 1 次提交