code: @Override
      public void registerDestructionCallback(String name, Runnable callback) {
          synchronized (this) {
              destructionCallbacks.put(name, callback);
          }
      }
docs: Register a bean destruction callback.
  
  @param name Bean name.
  @param callback Callback.