Package org.eclipse.aether.internal.impl
Class DefaultRepositorySystemLifecycle
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositorySystemLifecycle
- All Implemented Interfaces:
RepositorySystemLifecycle
@Singleton
@Named
public class DefaultRepositorySystemLifecycle
extends Object
implements RepositorySystemLifecycle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOnSystemEndedHandler
(Runnable handler) Registers an "on repository system end" handler.void
Marks the repository system as ended (shut down): all "on close" handlers will be invoked.
-
Constructor Details
-
DefaultRepositorySystemLifecycle
-
-
Method Details
-
systemEnded
Description copied from interface:RepositorySystemLifecycle
Marks the repository system as ended (shut down): all "on close" handlers will be invoked. This method may be invoked multiple times, only once will execute, subsequent calls will be no-op.- Specified by:
systemEnded
in interfaceRepositorySystemLifecycle
-
addOnSystemEndedHandler
Description copied from interface:RepositorySystemLifecycle
Registers an "on repository system end" handler.Throws if repository system is already shut down.
- Specified by:
addOnSystemEndedHandler
in interfaceRepositorySystemLifecycle
-