From a83695fcf51f5d230184853975f485e5f3cd19c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pere=20Fern=C3=A1ndez?= Date: Wed, 13 Dec 2023 16:32:05 +0100 Subject: [PATCH] - Removing @Lazy injections on RestWorkItemHandler constructors (#3330) --- .../java/org/kie/kogito/codegen/process/ProcessGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java b/kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java index 492e471925d..00eda479eb1 100644 --- a/kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java +++ b/kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java @@ -436,7 +436,7 @@ public ClassOrInterfaceDeclaration classDeclaration() { if (context.hasDI()) { context.getDependencyInjectionAnnotator().withApplicationComponent(handlerClazz); context.getDependencyInjectionAnnotator() - .withOptionalInjection( + .withInjection( handlerClazz .getConstructors() .stream()