code: public <T> boolean register(T destroyableInstance, Object context, Iterable<LifecycleAction> action) {
          return scopeCleaner.isRunning()
                  ? new ManagedInstanceScopingVisitor(destroyableInstance, context, action).visitEagerSingleton()
                  : false;
      }
docs: /*
  compatibility-mode - scope is assumed to be eager singleton