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.