Base class for a service that can be registered with the application that is started and stopped during the application lifecycle.
The current status of the unit.
The global application instance.
Get the global Application.
Get the global Container.
This method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.
IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.
Get the method with the given name from this class, bound to this class.
make() method on the global container.
This method is called to start the unit when the application is booting. Here, you should do any setup required to get the package up and running.