onPause method

  1. @override
void onPause()
override

Stops the running beans except the SmartLifecycle beans that are not SmartLifecycle.isPauseable; called by the context's pause() (Spring 7's onPause()). Does not wait for SmartLifecycle.stopWithCallback callbacks that come later.

Implementation

@override
void onPause() {
  if (_running) {
    _stopBeans(pauseableOnly: true);
    _running = false;
  }
}