destroy method

void destroy()

Destroys the container and cleans up resources

Implementation

void destroy() {
  _singletonCache.clear();
  _beanRegistry.clear();
  _namedBeanRegistry.clear();
  _initialized = false;
}