private <T> List<T> findBeans(Class<?> containerType, Class<?> genericType) {
        final ResolvableType resolvableType = ResolvableType.forClassWithGenerics(containerType, genericType);
        final String[] names = beanFactory.getBeanNamesForType(resolvableType);
        if (names.length == 0) {
            return ImmutableList.of();
        }
        @SuppressWarnings("unchecked")
        final List<T> beans = (List<T>) Arrays.stream(names).map(beanFactory::getBean)
                                              .collect(toImmutableList());
        return beans;
    }
Creates a new factory instance with the specified {@link ConfigurableListableBeanFactory}.
spring/boot3-webflux-autoconfigure/src/main/java/com/linecorp/armeria/spring/web/reactive/ArmeriaReactiveWebServerFactory.java