org.optaplanner.core.config.solver
Class XmlSolverFactory
java.lang.Object
org.optaplanner.core.config.solver.XmlSolverFactory
- All Implemented Interfaces:
- SolverFactory
public class XmlSolverFactory
- extends Object
- implements SolverFactory
XML based configuration that builds a Solver.
- See Also:
SolverFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSolverFactory
public XmlSolverFactory()
XmlSolverFactory
public XmlSolverFactory(String resource)
buildXstream
public static com.thoughtworks.xstream.XStream buildXstream()
addXstreamAnnotations
public void addXstreamAnnotations(Class... xstreamAnnotations)
configure
public XmlSolverFactory configure(String resource)
configure
public XmlSolverFactory configure(InputStream in)
configure
public XmlSolverFactory configure(Reader reader)
getSolverConfig
public SolverConfig getSolverConfig()
- Description copied from interface:
SolverFactory
- Allows you to problematically change the
SolverConfig at runtime before building the Solver.
- Specified by:
getSolverConfig in interface SolverFactory
- Returns:
- never null
buildSolver
public Solver buildSolver()
- Description copied from interface:
SolverFactory
- Creates a new
Solver instance.
- Specified by:
buildSolver in interface SolverFactory
- Returns:
- never null
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.