activateSpring method

void activateSpring(
  1. String springId
)

This is used internally by the {@link Spring}s created by this {@link BaseSpringSystem} to notify it has reached a state where it needs to be iterated. This will add the spring to the list of active springs on this system and start the iteration if the system was idle before this call. @param springId the id of the Spring to be activated

Implementation

void activateSpring(String springId) {
  Spring? spring = _mSpringRegistry[springId];
  if (spring == null) {
    throw new Exception("springId " + springId + " does not reference a registered spring");
  }
  _mActiveSprings.add(spring);
  if (getIsIdle()) {
    _mIdle = false;
    mSpringLooper.start();
  }
}