code: public void clear() {
  		for (Bean bean : beans.values()) {
  			if (null != bean.destructionCallback) {
  				bean.destructionCallback.run();
  			}
  		}
  		beans.clear();
  	}
docs: Clear all beans and call the destruction callback.