Module org.junit.platform.launcher
Package org.junit.platform.launcher
Interface LauncherSessionListener
@API(status=EXPERIMENTAL, since="1.8") public interface LauncherSessionListener
Register an implementation of this interface with the
LauncherConfig
passed to
LauncherFactory or via
ServiceLoader to be notified when a LauncherSession is opened and
closed.
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
Fields Modifier and Type Field Description static LauncherSessionListenerNOOPNo-op implementation ofLauncherSessionListener -
Method Summary
Modifier and Type Method Description default 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
-