-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KOGITO-3972] Make TemplateGenerator use KogitoBuildContext #934
[KOGITO-3972] Make TemplateGenerator use KogitoBuildContext #934
Conversation
…ates + Created AbstractPredictionModels and AbstractDecisionModels with common code
…n-config-refactoring # Conflicts: # api/kogito-api/src/main/java/org/kie/kogito/StaticApplication.java # kogito-codegen/src/main/java/org/kie/kogito/codegen/ApplicationContainerGenerator.java # kogito-codegen/src/main/resources/class-templates/ApplicationTemplate.java # kogito-codegen/src/main/resources/class-templates/CdiApplicationTemplate.java # kogito-codegen/src/main/resources/class-templates/DecisionContainerTemplate.java # kogito-codegen/src/main/resources/class-templates/SpringApplicationTemplate.java
…ne ApplicationTemplate to a different PR
…n-config-refactoring # Conflicts: # kogito-codegen/src/main/java/org/kie/kogito/codegen/ApplicationContainerGenerator.java # kogito-codegen/src/main/resources/class-templates/ApplicationTemplate.java
…n-config-refactoring # Conflicts: # api/kogito-api/src/main/java/org/kie/kogito/StaticApplication.java
…edictionmodels-inject
…n-config-refactoring # Conflicts: # kogito-codegen/src/test/java/org/kie/kogito/codegen/ApplicationGeneratorTest.java
…edictionmodels-inject
…ove all the code to abstract
…n-config-refactoring # Conflicts: # drools/kogito-dmn/src/main/java/org/kie/kogito/dmn/AbstractDecisionModels.java
…Now TemplatedGenerator is only used as delegator + Created AbstractConfigGenerator to simplify ConfigGenerator logic
…Renamed ApplicationGenerator.withGenerator as ApplicationGenerator.registerAndInitGenerator
…edictionmodels-inject
…into application-config-refactoring
…kogitobuildcontext # Conflicts: # kogito-codegen/src/main/java/org/kie/kogito/codegen/ApplicationContainerGenerator.java
…-kogitobuildcontext # Conflicts: # kogito-codegen/src/main/java/org/kie/kogito/codegen/ApplicationContainerGenerator.java # kogito-codegen/src/test/java/org/kie/kogito/codegen/ApplicationGeneratorTest.java
you can probably make it |
jenkins retest this please |
Done, now |
jenkins retest this please |
1 similar comment
jenkins retest this please |
jenkins retest this please |
2 similar comments
jenkins retest this please |
jenkins retest this please |
…-kogitobuildcontext
jenkins retest this please |
1 similar comment
jenkins retest this please |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
https://issues.redhat.com/browse/KOGITO-3972
Details
TemaplateGenerator
to useKogitoBuildContext
instead ofDependencyInjectorAnnotator
ConfigGenerator
and replaced withApplicationConfigGenerator
(it was an intermediate step now removed)AbstractConfigGenerator
to simplify*ConfigGenerator
impl*ConfigGenerator
s now extendsAbstractConfigGenerator
TemplateGenerator
usages to only be used as delegateJavaKogitoBuildContext
for non-DI context (and avoidnull
context)DependencyInjectionAnnotator
reference insideKogitoBuildContext
to prevent inconsistent configuration (i.e. Quarkus but no DI or Java but with DI)withDependencyInjectionAnnotator
methods because no more neededhasDI()
method insideKogitoBuildContext
and removed all customuseInjection()
methodsTo be merged after https://github.com/kiegroup/kogito-runtimes/pull/929Merged