use of io.automatiko.engine.quarkus.AutomatikoBuildTimeConfig in project automatiko-engine by automatiko-io.
the class AutomatikoQuarkusProcessor method buildContext.
private GeneratorContext buildContext(AutomatikoBuildTimeConfig config, AppPaths appPaths, IndexView index) {
GeneratorContext generationContext = QuarkusGeneratorContext.ofResourcePath(appPaths.getResourceFiles()[0], appPaths.getFirstClassesPath().toFile());
generationContext.withBuildContext(new QuarkusApplicationBuildContext(config, className -> {
DotName classDotName = createDotName(className);
return !index.getAnnotations(classDotName).isEmpty() || index.getClassByName(classDotName) != null;
}, className -> {
return index.getAllKnownImplementors(createDotName(className)).stream().map(c -> c.name().toString()).collect(Collectors.toList());
}));
return AutomatikoBuildData.create(config, generationContext).getGenerationContext();
}
Aggregations