registerLifecycle abstract method
Registers a RaiiLifecycle object to be managed by this container.
The registered object will be initialized immediately if this container is already initialized, or when the container is initialized later.
Throws StateError if the manager has been disposed.
Implementation
void registerLifecycle(RaiiLifecycle lifecycle);