public class XStreamXmlPlannerBenchmarkFactory extends PlannerBenchmarkFactory
PlannerBenchmarkFactory
Modifier and Type | Field and Description |
---|---|
protected PlannerBenchmarkConfig |
plannerBenchmarkConfig |
protected SolverConfigContext |
solverConfigContext |
protected com.thoughtworks.xstream.XStream |
xStream |
Constructor and Description |
---|
XStreamXmlPlannerBenchmarkFactory() |
XStreamXmlPlannerBenchmarkFactory(SolverConfigContext solverConfigContext) |
Modifier and Type | Method and Description |
---|---|
void |
addXStreamAnnotations(Class... xStreamAnnotations) |
PlannerBenchmark |
buildPlannerBenchmark()
Creates a new
PlannerBenchmark instance. |
XStreamXmlPlannerBenchmarkFactory |
configure(File benchmarkConfigFile) |
XStreamXmlPlannerBenchmarkFactory |
configure(InputStream in) |
XStreamXmlPlannerBenchmarkFactory |
configure(Reader reader) |
XStreamXmlPlannerBenchmarkFactory |
configure(String benchmarkConfigResource) |
PlannerBenchmarkConfig |
getPlannerBenchmarkConfig()
Allows you to problematically change the
PlannerBenchmarkConfig at runtime before building
the PlannerBenchmark . |
com.thoughtworks.xstream.XStream |
getXStream() |
createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromXmlFile, createFromXmlFile, createFromXmlInputStream, createFromXmlInputStream, createFromXmlReader, createFromXmlReader, createFromXmlResource, createFromXmlResource
protected final SolverConfigContext solverConfigContext
protected com.thoughtworks.xstream.XStream xStream
protected PlannerBenchmarkConfig plannerBenchmarkConfig
public XStreamXmlPlannerBenchmarkFactory()
public XStreamXmlPlannerBenchmarkFactory(SolverConfigContext solverConfigContext)
solverConfigContext
- never nullpublic void addXStreamAnnotations(Class... xStreamAnnotations)
xStreamAnnotations
- never nullXStream.processAnnotations(Class[])
public com.thoughtworks.xstream.XStream getXStream()
public XStreamXmlPlannerBenchmarkFactory configure(String benchmarkConfigResource)
benchmarkConfigResource
- never null, a classpath resource
as defined by ClassLoader.getResource(String)
public XStreamXmlPlannerBenchmarkFactory configure(File benchmarkConfigFile)
public XStreamXmlPlannerBenchmarkFactory configure(InputStream in)
public XStreamXmlPlannerBenchmarkFactory configure(Reader reader)
public PlannerBenchmarkConfig getPlannerBenchmarkConfig()
PlannerBenchmarkFactory
PlannerBenchmarkConfig
at runtime before building
the PlannerBenchmark
.
This method is not thread-safe.getPlannerBenchmarkConfig
in class PlannerBenchmarkFactory
public PlannerBenchmark buildPlannerBenchmark()
PlannerBenchmarkFactory
PlannerBenchmark
instance.buildPlannerBenchmark
in class PlannerBenchmarkFactory
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.