
io.codearte.accurest.stubrunner.BatchStubRunnerFactory.groovy Maven / Gradle / Ivy
package io.codearte.accurest.stubrunner
import groovy.transform.CompileStatic
/**
* Manages lifecycle of multiple {@link StubRunner} instances.
*
* @see StubRunner
* @see BatchStubRunner
*/
@CompileStatic
class BatchStubRunnerFactory {
private final StubRunnerOptions stubRunnerOptions
private final Collection dependencies
BatchStubRunnerFactory(StubRunnerOptions stubRunnerOptions, Collection dependencies) {
this.stubRunnerOptions = stubRunnerOptions
this.dependencies = dependencies
}
BatchStubRunner buildBatchStubRunner() {
StubRunnerFactory stubRunnerFactory = new StubRunnerFactory(stubRunnerOptions, dependencies)
return new BatchStubRunner(stubRunnerFactory.createStubsFromServiceConfiguration())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy