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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOnSessionEndedHandle(org.eclipse.aether.RepositorySystemSession.CloseableSession session, Runnable handler) Registers an "on session end" handler.voidaddOnSystemEndedHandler(Runnable handler) Registers an "on repository system end" handler.voidsessionEnded(org.eclipse.aether.RepositorySystemSession.CloseableSession session) Signals that passed in session was ended, it will not be used anymore.voidsessionStarted(org.eclipse.aether.RepositorySystemSession.CloseableSession session) Registers the session for lifecycle tracking: it marks that the passed in session instance is about to start.voidMarks the repository system as ended (shut down): all "on close" handlers will be invoked.
-
Constructor Details
-
DefaultRepositorySystemLifecycle
-
-
Method Details
-
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
Description copied from interface:RepositorySystemLifecycleRegisters an "on repository system end" handler.Throws if repository system is already shut down.
- Specified by:
addOnSystemEndedHandlerin interfaceRepositorySystemLifecycle
-
sessionStarted
Description copied from interface:RepositorySystemLifecycleRegisters the session for lifecycle tracking: it marks that the passed in session instance is about to start.Same session instance can be started only once.
- Specified by:
sessionStartedin interfaceRepositorySystemLifecycle
-
sessionEnded
Description copied from interface:RepositorySystemLifecycleSignals that passed in session was ended, it will not be used anymore. Repository system will invoke the registered handlers for this session, if any. This method throws if the passed in session instance was not passed to methodRepositorySystemLifecycle.sessionStarted(CloseableSession)beforehand.Same session instance can be ended only once.
- Specified by:
sessionEndedin interfaceRepositorySystemLifecycle
-
addOnSessionEndedHandle
public void addOnSessionEndedHandle(org.eclipse.aether.RepositorySystemSession.CloseableSession session, Runnable handler) Description copied from interface:RepositorySystemLifecycleRegisters an "on session end" handler.Throws if session was not passed to
RepositorySystemLifecycle.sessionStarted(CloseableSession)beforehand.- Specified by:
addOnSessionEndedHandlein interfaceRepositorySystemLifecycle
-