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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.boot.context.event.ApplicationPreparedEvent event)
-
Constructor Details
-
WireMockApplicationListener
public WireMockApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
-