@UnstableApi
    public ServerBuilder dependencyInjector(DependencyInjector dependencyInjector, boolean shutdownOnStop) {
        requireNonNull(dependencyInjector, "dependencyInjector");
        if (this.dependencyInjector == null) {
            // Apply BuiltInDependencyInjector at first if a DependencyInjector is set.
            this.dependencyInjector = BuiltInDependencyInjector.INSTANCE;
        }
        this.dependencyInjector = this.dependencyInjector.orElse(dependencyInjector);
        if (shutdownOnStop) {
            shutdownSupports.add(ShutdownSupport.of(dependencyInjector));
        }
        return this;
    }
Sets the {@link DependencyInjector} to inject dependencies in annotated services.

@param dependencyInjector the {@link DependencyInjector} to inject dependencies
@param shutdownOnStop whether to shut down the {@link DependencyInjector} when the {@link Server} stops
core/src/main/java/com/linecorp/armeria/server/ServerBuilder.java