org.optaplanner.core.config.solver
public class XmlSolverFactory extends Object implements SolverFactory
Solver
.SolverFactory
Constructor and Description |
---|
XmlSolverFactory() |
XmlSolverFactory(String resource) |
Modifier and Type | Method and Description |
---|---|
void |
addXstreamAnnotations(Class... xstreamAnnotations) |
Solver |
buildSolver()
Creates a new
Solver instance. |
static com.thoughtworks.xstream.XStream |
buildXstream() |
XmlSolverFactory |
configure(InputStream in) |
XmlSolverFactory |
configure(Reader reader) |
XmlSolverFactory |
configure(String resource) |
SolverConfig |
getSolverConfig()
Allows you to problematically change the
SolverConfig at runtime before building the Solver . |
public XmlSolverFactory()
public XmlSolverFactory(String resource)
public static com.thoughtworks.xstream.XStream buildXstream()
public void addXstreamAnnotations(Class... xstreamAnnotations)
public XmlSolverFactory configure(String resource)
public XmlSolverFactory configure(InputStream in)
public XmlSolverFactory configure(Reader reader)
public SolverConfig getSolverConfig()
SolverFactory
SolverConfig
at runtime before building the Solver
.getSolverConfig
in interface SolverFactory
public Solver buildSolver()
SolverFactory
Solver
instance.buildSolver
in interface SolverFactory
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.