@ Bean public KieContainer kieContainer ( ) { final KieServices kieServices = KieServices . Factory . get ( ) ; final KieContainer kContainer = kieServices . getKieClasspathContainer ( ) ; LOGGER . info ( "Using classloader {}, parent {}" , kContainer . getClassLoader ( ) , kContainer . getClassLoader ( ) . getParent ( ) ) ; final Results verifyResults = kContainer . verify ( ) ; for ( final Message m : verifyResults . getMessages ( ) ) { LOGGER . warn ( "Kie container message: {}" , m ) ; } final KieBase kieBase = kContainer . getKieBase ( ) ; for ( final KiePackage kp : kieBase . getKiePackages ( ) ) { for ( final Rule rule : kp . getRules ( ) ) { LOGGER . info ( "Loadded Rule: {} {}" , kp , rule . getName ( ) ) ; } } return kContainer ; }
Kie container .