registerLifecycle abstract method

void registerLifecycle(
  1. RaiiLifecycle lifecycle
)

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);