@Test public void setKieRuntimeFactoryFunction() { KieRuntimeFactory toReturn = KieRuntimeFactory.of(KIE_BASE); Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction = s -> toReturn; final DMNRuntimeImpl retrieved = (DMNRuntimeImpl) dmnRuntimeBuilder .setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction) .buildConfiguration() .fromResources(Collections.emptyList()).getOrElseThrow(RuntimeException::new); assertNotNull(retrieved); KieRuntimeFactory kieRuntimeFactory = retrieved.getKieRuntimeFactory("TEST"); assertEquals(toReturn, kieRuntimeFactory); }
public DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction) { ctx.setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction); return this; }
DMNRuntimeBuilder { public DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction) { ctx.setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction); return this; } }
DMNRuntimeBuilder { public DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction) { ctx.setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction); return this; } private  DMNRuntimeBuilder(); }
DMNRuntimeBuilder { public DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction) { ctx.setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction); return this; } private  DMNRuntimeBuilder(); static DMNRuntimeBuilder fromDefaults(); DMNRuntimeBuilder addProfile(DMNProfile dmnProfile); DMNRuntimeBuilder setOption(RuntimeTypeCheckOption option); DMNRuntimeBuilder setRootClassLoader(ClassLoader classLoader); DMNRuntimeBuilder setRelativeImportResolver(RelativeImportResolver relativeResolver); DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction); static DMNRuntimeBuilderConfigured usingStrict(); DMNRuntimeBuilderConfigured buildConfiguration(); DMNRuntimeBuilderConfigured buildConfigurationUsingCustomCompiler(Function<DMNCompilerConfiguration, DMNCompiler> dmnCompilerFn); }
DMNRuntimeBuilder { public DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction) { ctx.setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction); return this; } private  DMNRuntimeBuilder(); static DMNRuntimeBuilder fromDefaults(); DMNRuntimeBuilder addProfile(DMNProfile dmnProfile); DMNRuntimeBuilder setOption(RuntimeTypeCheckOption option); DMNRuntimeBuilder setRootClassLoader(ClassLoader classLoader); DMNRuntimeBuilder setRelativeImportResolver(RelativeImportResolver relativeResolver); DMNRuntimeBuilder setKieRuntimeFactoryFunction(Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction); static DMNRuntimeBuilderConfigured usingStrict(); DMNRuntimeBuilderConfigured buildConfiguration(); DMNRuntimeBuilderConfigured buildConfigurationUsingCustomCompiler(Function<DMNCompilerConfiguration, DMNCompiler> dmnCompilerFn);  }