Package nl.pim16aap2.animatedarchitecture.core.api.restartable
@NullMarked
package nl.pim16aap2.animatedarchitecture.core.api.restartable
Contains classes and interfaces used to easily restart objects.
Any class that implements IRestartable or extends
Restartable can register itself with the
RestartableHolder.
When the restartable holder receives a 'initialize' instruction, all registered restartables will be initialized in the order in which they were registered.
For a 'shutDown' instruction, all registered restartables will be shut down in reverse order.
A 'restart' instruction is a simple combination of both, where all registered restartables are first shut down, and then initialized again.
Each class can define what is means to be restarted on its own.
-
ClassDescriptionRepresents an object what can be restarted and shut down.Basic implementation of
IRestartable.Represents an object that can issue a restart or shutdown toIRestartableobjects.