This interface can be used to register a component state listener. Component
state listeners are called whenever a component state changes. You get notified
when the component is starting, started, stopping and stopped. Each callback
includes a reference to the component in question.