class NamiConfigurationSolon implements NamiConfiguration {

    private NamiConfiguration custom;
    private AppContext context;

    public NamiConfigurationSolon(AppContext context) {
        this.context = context;

        //
        //如果有定制的NamiConfiguration, 则用之
        //
        context.getBeanAsync(NamiConfiguration.class, (bean) -> {
            custom = bean;
        });

        //订阅拦截器
        context.subBeansOfType(Filter.class, it -> {
            NamiManager.reg(it);
        });
    }

    @Override
    public void config(NamiClient client, NamiBuilder builder) {<FILL_FUNCTION_BODY>}

    private LoadBalance getUpstream(NamiClient anno) {
        return LoadBalance.get(anno.group(), anno.name());
    }
}

        if (Utils.isEmpty(client.name())) {
            return;
        }

        //尝试自定义
        if (custom != null) {
            custom.config(client, builder);
        }

        //尝试从负载工厂获取（如果已提前指定，则跳过）
        if (builder.upstream() == null) {
            LoadBalance upstream = getUpstream(client);

            if (upstream != null) {
                builder.upstream(upstream::getServer);
            } else {
                //尝试从Ioc容器获取
                context.getWrapAsync(client.name(), (bw) -> {
                    LoadBalance tmp = bw.raw();
                    builder.upstream(tmp::getServer);
                });
            }
        }
    
<no_super_class>