Search in sources :

Example 1 with KieBaseBuilder

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);
}
Also used : ProjectClassLoader(org.drools.core.common.ProjectClassLoader) KieBaseConfiguration(org.kie.api.KieBaseConfiguration) KieBaseBuilder(org.drools.modelcompiler.builder.KieBaseBuilder)

Aggregations

ProjectClassLoader (org.drools.core.common.ProjectClassLoader)1 KieBaseBuilder (org.drools.modelcompiler.builder.KieBaseBuilder)1 KieBaseConfiguration (org.kie.api.KieBaseConfiguration)1