org.nutz.boot.starter.dubbo.DubboBeanFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutzboot-starter-dubbo Show documentation
Show all versions of nutzboot-starter-dubbo Show documentation
NutzBoot, micoservice base on Nutz
package org.nutz.boot.starter.dubbo;
import org.nutz.ioc.impl.PropertiesProxy;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.model.ApplicationModel;
@IocBean
public class DubboBeanFactory {
@Inject
protected PropertiesProxy conf;
@IocBean
public ApplicationConfig makeApplicationConfig() {
return conf.make(ApplicationConfig.class, "dubbo.application.");
}
@IocBean
public ProtocolConfig makeProtocolConfig() {
return conf.make(ProtocolConfig.class, "dubbo.protocol.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy