dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Add migration instruction for deprecated apis

Open hqgordon opened this issue 3 years ago • 2 comments

ReferenceConfig.setApplication is @Deprecated how to set name?

hqgordon avatar Sep 08 '22 13:09 hqgordon

Please assign it to me

cnjxzhao avatar Sep 09 '22 02:09 cnjxzhao

@hqgordon , Hi, You can use another method, AbstractInterfaceConfig#setScopeModel(ScopeModel) To replace the existing setApplication() method, The usage example is as follows: ... ApplicationConfig applicationConfig = new ApplicationConfig("name"); ApplicationModel applicationModel = new ApplicationModel(FrameworkModel.defaultModel()); applicationModel.getApplicationConfigManager().setApplication(applicationConfig); referenceConfig.setScopeModel(new ModuleModel(applicationModel)); ...

cnjxzhao avatar Sep 10 '22 15:09 cnjxzhao