diff --git a/documentation/src/docs/asciidoc/user-guide/advanced-topics/launcher-api.adoc b/documentation/src/docs/asciidoc/user-guide/advanced-topics/launcher-api.adoc index 18c0b261e299..c4978a431362 100644 --- a/documentation/src/docs/asciidoc/user-guide/advanced-topics/launcher-api.adoc +++ b/documentation/src/docs/asciidoc/user-guide/advanced-topics/launcher-api.adoc @@ -169,12 +169,12 @@ include::{testDir}/example/session/HttpTests.java[tags=user_guide] In order to intercept the creation of instances of `{Launcher}` and `{LauncherSessionListener}` and calls to the `discover` and `execute` methods of the former, clients can register custom implementations of `{LauncherInterceptor}` via Java's -`{ServiceLoader}` mechanism by additionally setting the +`{ServiceLoader}` mechanism by setting the `junit.platform.launcher.interceptors.enabled` <> to `true`. -A typical use case is to create a custom replace the `ClassLoader` used by the JUnit -Platform to load test classes and engine implementations. +A typical use case is to create a custom interceptor to replace the `ClassLoader` used by +the JUnit Platform to load test classes and engine implementations. [source,java] ----