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 java.lang.Object implements RepositorySystemLifecycle
-
-
Constructor Summary
Constructors Constructor Description DefaultRepositorySystemLifecycle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOnSystemEndedHandler(java.lang.Runnable handler)Registers an "on repository system end" handler.voidsystemEnded()Marks the repository system as ended (shut down): all "on close" handlers will be invoked.
-
-
-
Constructor Detail
-
DefaultRepositorySystemLifecycle
@Inject public DefaultRepositorySystemLifecycle()
-
-
Method Detail
-
systemEnded
public void systemEnded()
Description copied from interface:RepositorySystemLifecycleMarks 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:
systemEndedin interfaceRepositorySystemLifecycle
-
addOnSystemEndedHandler
public void addOnSystemEndedHandler(java.lang.Runnable handler)
Description copied from interface:RepositorySystemLifecycleRegisters an "on repository system end" handler.Throws if repository system is already shut down.
- Specified by:
addOnSystemEndedHandlerin interfaceRepositorySystemLifecycle
-
-