BAEL-804 - Spring Drools refactor
This commit is contained in:
parent
12166e9016
commit
21865398d7
|
@ -12,7 +12,7 @@ public class ApplicationRunner {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
ApplicationContext context = new AnnotationConfigApplicationContext(TaxiFareConfiguration.class);
|
ApplicationContext context = new AnnotationConfigApplicationContext(TaxiFareConfiguration.class);
|
||||||
TaxiFareCalculatorService orderService = (TaxiFareCalculatorService) context.getBean(TaxiFareCalculatorService.class);
|
TaxiFareCalculatorService orderService = context.getBean(TaxiFareCalculatorService.class);
|
||||||
|
|
||||||
TaxiRide taxiRide = new TaxiRide();
|
TaxiRide taxiRide = new TaxiRide();
|
||||||
taxiRide.setbNightSurcharge(true);
|
taxiRide.setbNightSurcharge(true);
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class TaxiFareConfiguration {
|
||||||
public static final String drlFile = "TAXI_FARE_RULE.drl";
|
public static final String drlFile = "TAXI_FARE_RULE.drl";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public KieContainer kieSession() {
|
public KieContainer kieContainer() {
|
||||||
KieServices kieServices = KieServices.Factory.get();
|
KieServices kieServices = KieServices.Factory.get();
|
||||||
|
|
||||||
KieFileSystem kieFileSystem = kieServices.newKieFileSystem();
|
KieFileSystem kieFileSystem = kieServices.newKieFileSystem();
|
||||||
|
|
Loading…
Reference in New Issue