Class StubRunnerConfiguration
- java.lang.Object
-
- org.springframework.cloud.contract.stubrunner.spring.StubRunnerConfiguration
-
@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(StubRunnerProperties.class) @ConditionalOnMissingBean(type="org.springframework.cloud.contract.wiremock.WiremockServerConfiguration") @Import(org.springframework.cloud.contract.stubrunner.spring.StubRunnerPortBeanPostProcessor.class) public class StubRunnerConfiguration extends Object
Configuration that initializes aBatchStubRunnerthat runsStubRunnerinstance for each stub.- Author:
- Marcin Grzejszczak, EddĂș MelĂ©ndez
-
-
Constructor Summary
Constructors Constructor Description StubRunnerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchStubRunnerbatchStubRunner(org.springframework.beans.factory.BeanFactory beanFactory)Bean that initializes stub runners, runs them and on shutdown closes them.org.springframework.beans.factory.config.BeanPostProcessorbatchStubRunnerBeanPostProcessor(BatchStubRunner runner)
-
-
-
Method Detail
-
batchStubRunner
@Bean public BatchStubRunner batchStubRunner(org.springframework.beans.factory.BeanFactory beanFactory)
Bean that initializes stub runners, runs them and on shutdown closes them. Upon its instantiation JAR with stubs is downloaded and unpacked to a temporary folder and WireMock server are started for each of those stubs- Parameters:
beanFactory- bean factory- Returns:
- the batch stub runner bean
-
batchStubRunnerBeanPostProcessor
@Bean public org.springframework.beans.factory.config.BeanPostProcessor batchStubRunnerBeanPostProcessor(BatchStubRunner runner)
-
-