Package org.junit.platform.launcher
Interface LauncherSessionListener
-
- All Known Implementing Classes:
CompositeLauncherSessionListener
@API(status=STABLE, since="1.10") public interface LauncherSessionListenerRegister an implementation of this interface to be notified when aLauncherSessionis opened and closed.A
LauncherSessionListenercan be registered programmatically with theLauncherConfigpassed to theLauncherFactoryor automatically via Java'sServiceLoadermechanism.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
LauncherorLauncherSessioncreated via theLauncherFactory.
-
-
Field Summary
Fields Modifier and Type Field Description static LauncherSessionListenerNOOPNo-op implementation ofLauncherSessionListener
-
Method Summary
All Methods Instance Methods Default Methods 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 Detail
-
NOOP
static final LauncherSessionListener NOOP
No-op implementation ofLauncherSessionListener
-
-
Method Detail
-
launcherSessionOpened
default void launcherSessionOpened(LauncherSession session)
Called when a launcher session was opened.- Parameters:
session- the opened session
-
launcherSessionClosed
default void launcherSessionClosed(LauncherSession session)
Called when a launcher session was closed.- Parameters:
session- the closed session
-
-