Module org.junit.platform.launcher
Package org.junit.platform.launcher
Interface LauncherSessionListener
Register an implementation of this interface to be notified when a
LauncherSession is opened and closed.
A LauncherSessionListener can be registered programmatically with
the LauncherConfig
passed to the
LauncherFactory or
automatically via Java's ServiceLoader
mechanism.
All methods in this class have empty default implementations. Subclasses may therefore override one or more of these methods to be notified of the selected events.
The methods declared in this interface are called by the Launcher
or LauncherSession created via the LauncherFactory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LauncherSessionListenerNo-op implementation ofLauncherSessionListener -
Method Summary
Modifier and TypeMethodDescriptiondefault voidlauncherSessionClosed(LauncherSession session) Called when a launcher session was closed.default voidlauncherSessionOpened(LauncherSession session) Called when a launcher session was opened.
-
Field Details
-
NOOP
No-op implementation ofLauncherSessionListener
-
-
Method Details
-
launcherSessionOpened
Called when a launcher session was opened.- Parameters:
session- the opened session
-
launcherSessionClosed
Called when a launcher session was closed.- Parameters:
session- the closed session
-