What's Changed
- Added
AnnotationPredicate#annotationValues()
that exposes the values of each annotation declared method in a method-name to value map (this can for example be used to create a value based on an annotation value, see https://github.com/derklaro/aerogel/blob/v2/src/test/java/dev/derklaro/aerogel/MatchingElementBindingTest.java) - Ensure to always unwrap the inner value of a "KnownValue" returned by a binding provider. An error could be triggered by f. ex. applying the singleton scope multiple times to a binding which causes an invalid unwrap of the KnownValue.
- Fixed a memory leak caused by each injector storing each binding of the injector tree when first requested.
Dependency
Maven:
<dependency>
<groupId>dev.derklaro.aerogel</groupId>
<artifactId>aerogel</artifactId>
<version>2.0.0</version>
</dependency>
Gradle:
implementation("dev.derklaro.aerogel:aerogel:2.0.0")
Releases can take up to 20 minutes to show up in Maven-Central.
Full Changelog: v2.0.0...v2.1.0