close method

void close()

Implementation

void close() {
  if (isClose) throw ClosedScopeException(_scopeId);
  isClose = true;
  for (final module in _modules) {
    module.beans().forEach((bean) {
      if (bean is Scoped) {
        bean.close(_scopeId);
      }
    });
  }
  _closeSelfFunc(_scopeId);
}