BAEL-804 - Spring Drools refactor

This commit is contained in:
slavisa-baeldung 2017-06-28 21:48:29 +01:00
parent 12166e9016
commit 21865398d7
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ public class ApplicationRunner {
public static void main(String[] args) {
ApplicationContext context = new AnnotationConfigApplicationContext(TaxiFareConfiguration.class);
TaxiFareCalculatorService orderService = (TaxiFareCalculatorService) context.getBean(TaxiFareCalculatorService.class);
TaxiFareCalculatorService orderService = context.getBean(TaxiFareCalculatorService.class);
TaxiRide taxiRide = new TaxiRide();
taxiRide.setbNightSurcharge(true);

View File

@ -16,7 +16,7 @@ public class TaxiFareConfiguration {
public static final String drlFile = "TAXI_FARE_RULE.drl";
@Bean
public KieContainer kieSession() {
public KieContainer kieContainer() {
KieServices kieServices = KieServices.Factory.get();
KieFileSystem kieFileSystem = kieServices.newKieFileSystem();