public class XStreamXmlPlannerBenchmarkFactory extends PlannerBenchmarkFactory
PlannerBenchmarkFactory
Modifier and Type | Field and Description |
---|---|
protected PlannerBenchmarkConfig |
plannerBenchmarkConfig |
protected com.thoughtworks.xstream.XStream |
xStream |
Constructor and Description |
---|
XStreamXmlPlannerBenchmarkFactory() |
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, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromXmlFile, createFromXmlInputStream, createFromXmlReader, createFromXmlResource
protected com.thoughtworks.xstream.XStream xStream
protected PlannerBenchmarkConfig plannerBenchmarkConfig
public 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
.getPlannerBenchmarkConfig
in class PlannerBenchmarkFactory
public PlannerBenchmark buildPlannerBenchmark()
PlannerBenchmarkFactory
PlannerBenchmark
instance.buildPlannerBenchmark
in class PlannerBenchmarkFactory
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.