Add access to parameter annotations in the parameter injector

This commit is contained in:
Alexander Söderberg 2021-01-14 10:56:27 +01:00 committed by Alexander Söderberg
parent 92f8661b59
commit 9550dce5e6
7 changed files with 147 additions and 6 deletions

View file

@ -92,7 +92,7 @@ class MethodCommandExecutionHandler<C> implements CommandExecutionHandler<C> {
final Optional<?> value = this.injectorRegistry.getInjectable(
parameter.getType(),
commandContext,
this.annotationAccessor
AnnotationAccessor.of(AnnotationAccessor.of(parameter), this.annotationAccessor)
);
if (value.isPresent()) {
arguments.add(value.get());