optaplanner-core/src/main/java/org/optaplanner/core/api/solver/SolverFactory.java
public static <Solution_> SolverFactory<Solution_> createFromKieContainerXmlResource(
            String solverConfigResource) {
        KieContainer kieContainer = KieServices.Factory.get().getKieClasspathContainer();
        return new XStreamXmlSolverFactory<Solution_>(new SolverConfigContext(kieContainer))
                .configure(solverConfigResource);
    }
public static <Solution_> SolverFactory<Solution_> createFromKieContainerXmlResource(
            String solverConfigResource) {
        KieContainer kieContainer = KieServices.Factory.get().getKieClasspathContainer();
        return new XStreamXmlSolverFactory<Solution_>(new SolverConfigContext(kieContainer))
                .configure(solverConfigResource);
    }
public static < Solution_ > SolverFactory < Solution_ > createFromKieContainerXmlResource ( String solverConfigResource ) { KieContainer kieContainer = KieServices . Factory . get ( ) . getKieClasspathContainer ( ) ; return new XStreamXmlSolverFactory < Solution_ > ( new SolverConfigContext ( kieContainer ) ) . configure ( solverConfigResource ) ; }
Uses {@link KieServices#getKieClasspathContainer()}.
@param solverConfigResource never null, a classpath resource in the {@link KieContainer}
as defined by {@link ClassLoader#getResource(String)}
@return never null
Uses {