Skip to main content

v4.2.2 (2021-01-21)

Scope

  • Core lifecycle, configuration, and Providers, and Web parameter handling

Changes

  • Added
    • Allow Hasor to build Environment and Settings independently.
    • Add XmlNode.toSettingMap and toSettingsMap to convert configuration nodes to Maps.
  • Improved
    • Make AppContext implement Closeable, calling shutdown when closed.
    • Extend the Provider interface and make Hasor SPI compatible with standard Java SPI.
    • Improve handling of final fields in BeanContainer.
  • Fixed
    • Fix a null-pointer exception in setupEnvironment.
    • Fix handling of non-array request parameters and add type conversion.

Upgrade notes

  • Rename Servlet initialization parameters hasor-hconfig-name and hasor-envconfig-name to hasor-hconfig-file and hasor-env-file, respectively.
  • Move the Core provider utilities into the common module; update imports when using these types directly.