Class DefaultLauncherSession
java.lang.Object
org.junit.platform.launcher.core.DefaultLauncherSession
- All Implemented Interfaces:
AutoCloseable, LauncherSession
- Since:
- 1.8
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LauncherInterceptorprivate final DelegatingLauncherprivate final LauncherSessionListenerprivate static final LauncherInterceptorprivate final NamespacedHierarchicalStore<Namespace> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultLauncherSession(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Function<NamespacedHierarchicalStore<Namespace>, Launcher> launcherFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this session and notify all registeredLauncherSessionListeners.private static LauncherInterceptorcomposite(List<LauncherInterceptor> interceptors) Get theLauncherassociated with this session.(package private) LauncherSessionListenergetStore()Get theNamespacedHierarchicalStoreassociated with this session.
-
Field Details
-
NOOP_INTERCEPTOR
-
store
-
interceptor
-
listener
-
launcher
-
-
Constructor Details
-
DefaultLauncherSession
DefaultLauncherSession(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Function<NamespacedHierarchicalStore<Namespace>, Launcher> launcherFactory)
-
-
Method Details
-
getLauncher
Description copied from interface:LauncherSessionGet theLauncherassociated with this session.Any call to the launcher returned by this method after the session has been closed will throw an exception.
- Specified by:
getLauncherin interfaceLauncherSession
-
getListener
LauncherSessionListener getListener() -
close
public void close()Description copied from interface:LauncherSessionClose this session and notify all registeredLauncherSessionListeners.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceLauncherSession
-
getStore
Description copied from interface:LauncherSessionGet theNamespacedHierarchicalStoreassociated with this session.All stored values that implement
AutoCloseableare notified by invoking theirclose()methods when this session is closed.Any call to the store returned by this method after the session has been closed will throw an exception.
- Specified by:
getStorein interfaceLauncherSession- See Also:
-
composite
-