Class WireMockApplicationListener
- java.lang.Object
-
- org.springframework.cloud.contract.wiremock.WireMockApplicationListener
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
@Order(2147483647) public class WireMockApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
Listener that prepares the environment so that WireMock will work when it is initialized. For example, by finding free ports for the server to listen on.- Author:
- Dave Syer, Matt Garner
-
-
Constructor Summary
Constructors Constructor Description WireMockApplicationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)
-