use of org.drools.modelcompiler.builder.KieBaseBuilder in project drools by kiegroup.
the class CanonicalKieModule method createKieBase.
@Override
public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, ResultsImpl messages, KieBaseConfiguration conf) {
this.moduleClassLoader = ((ProjectClassLoader) kieProject.getClassLoader());
KieBaseConfiguration kBaseConf = getKieBaseConfiguration(kBaseModel, moduleClassLoader, conf);
CanonicalKiePackages kpkgs = pkgsInKbase.computeIfAbsent(kBaseModel.getName(), k -> createKiePackages(kBaseModel, kBaseConf));
return new KieBaseBuilder(kBaseModel, kBaseConf).createKieBase(kpkgs);
}
Aggregations