Skip to content

Commit

Permalink
Document the new lifecycle methods in the Extension interface
Browse files Browse the repository at this point in the history
  • Loading branch information
leeturner committed May 20, 2024
1 parent 6e1366e commit 01fcc2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _docs/extending-wiremock.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ At present, the following extension interfaces are available:

The interfaces in this list ending with `V2` supercede deprecated equivalents with an older, more restrictive interface. Additionally `ServeEventListener` deprecates `PostServeAction`.

As of WireMock version `3.6.0`, the `Extension` interface has two new lifecycle methods called `start()` and `stop()`.
The `start()` method is called on each extension when the WireMock server first starts (just before the stub mappings
are loaded) and the `stop()` method is called when the server is stopped. This allows extensions to perform any
initialisation or cleanup tasks.

## Registering Extensions

Expand Down

0 comments on commit 01fcc2a

Please sign in to comment.