v4.0.0 (2019-05-09)
The minimum runtime is raised to Java 8. Core APIs move toward standard JDK functional interfaces, with changes to Web extensions and configuration loading.
Scope
- Java baseline, Core binding and AOP, and the Web filter chain
Changes
- Added
- Make
@Aopand@MappingTorepeatable; allow return values fromInvokerFilterandInvokerChain. - Add Bean creation listeners for callbacks when objects are created.
- Support Reader and InputStream as main configuration sources, and additional sources configured in code.
- Make
- Improved
- Move Provider and Matcher usage toward
SupplierandPredicate, respectively; upgrade ASM to 7.0. - Discover framework configuration through
META-INF/hasor.schemas; support merging configuration indexes when packaging.
- Move Provider and Matcher usage toward
- Fixed
- Fix constructors handling
doubleandlongparameters, and AOP exclusions inpackage-infoin the default package not being loaded.
- Fix constructors handling
Upgrade notes
- Use Java 8 or later for compilation and runtime. Adapt custom binding and filter-chain implementations to the new signatures.
- When merging JARs, retain the
META-INF/hasor.schemascontent from every module rather than only one source.