test_class.file: dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilderTest.java
test_class.identifier: AbstractInterfaceBuilderTest
test_case.body: @Test
      void build() {
          MonitorConfig monitorConfig = new MonitorConfig("123");
          ApplicationConfig applicationConfig = new ApplicationConfig();
          ModuleConfig moduleConfig = new ModuleConfig();
          RegistryConfig registryConfig = new RegistryConfig();
          MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
          ConfigCenterConfig configCenterConfig = new ConfigCenterConfig();
  
          InterfaceBuilder builder = new InterfaceBuilder();
          builder.id("id").prefix("prefix").local(true).stub(false).monitor("123").proxy("mockproxyfactory").cluster("mockcluster")
                  .filter("mockfilter").listener("mockinvokerlistener").owner("owner").connections(1)
                  .layer("layer").application(applicationConfig).module(moduleConfig)
                  .addRegistry(registryConfig).registryIds("registryIds")
                  .onconnect("onconnet").ondisconnect("ondisconnect")
                  .metadataReportConfig(metadataReportConfig)
                  .configCenter(configCenterConfig)
                  .callbacks(2).scope("scope");
  
          InterfaceConfig config = builder.build();
          InterfaceConfig config2 = builder.build();
  
          Assertions.assertEquals("id", config.getId());
          Assertions.assertEquals("prefix", config.getPrefix());
          Assertions.assertEquals("true", config.getLocal());
          Assertions.assertEquals("false", config.getStub());
          Assertions.assertEquals(monitorConfig, config.getMonitor());
          Assertions.assertEquals("mockproxyfactory", config.getProxy());
          Assertions.assertEquals("mockcluster", config.getCluster());
          Assertions.assertEquals("mockfilter", config.getFilter());
          Assertions.assertEquals("mockinvokerlistener", config.getListener());
          Assertions.assertEquals("owner", config.getOwner());
          Assertions.assertEquals(1, config.getConnections().intValue());
          Assertions.assertEquals("layer", config.getLayer());
          Assertions.assertEquals(applicationConfig, config.getApplication());
          Assertions.assertEquals(moduleConfig, config.getModule());
          Assertions.assertEquals(registryConfig, config.getRegistry());
          Assertions.assertEquals("registryIds", config.getRegistryIds());
          Assertions.assertEquals("onconnet", config.getOnconnect());
          Assertions.assertEquals("ondisconnect", config.getOndisconnect());
          Assertions.assertEquals(metadataReportConfig, config.getMetadataReportConfig());
          Assertions.assertEquals(configCenterConfig, config.getConfigCenter());
          Assertions.assertEquals(2, config.getCallbacks().intValue());
          Assertions.assertEquals("scope", config.getScope());
  
          Assertions.assertNotSame(config, config2);
      }
test_case.class_method_signature: AbstractInterfaceBuilderTest.build()
test_case.full_signature: @Test void build()
test_case.identifier: build
test_case.invocations: scope callbacks configCenter metadataReportConfig ondisconnect onconnect registryIds addRegistry module application layer connections owner listener filter cluster proxy monitor stub local prefix id build build assertEquals getId assertEquals getPrefix assertEquals getLocal assertEquals getStub assertEquals getMonitor assertEquals getProxy assertEquals getCluster assertEquals getFilter assertEquals getListener assertEquals getOwner assertEquals intValue getConnections assertEquals getLayer assertEquals getApplication assertEquals getModule assertEquals getRegistry assertEquals getRegistryIds assertEquals getOnconnect assertEquals getOndisconnect assertEquals getMetadataReportConfig assertEquals getConfigCenter assertEquals intValue getCallbacks assertEquals getScope assertNotSame
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: local
focal_class.modifier: protected
focal_class.original_string: protected String local;
focal_class.type: String
focal_class.var_name: local
focal_class.declarator: stub
focal_class.modifier: protected
focal_class.original_string: protected String stub;
focal_class.type: String
focal_class.var_name: stub
focal_class.declarator: monitor
focal_class.modifier: protected
focal_class.original_string: protected MonitorConfig monitor;
focal_class.type: MonitorConfig
focal_class.var_name: monitor
focal_class.declarator: proxy
focal_class.modifier: protected
focal_class.original_string: protected String proxy;
focal_class.type: String
focal_class.var_name: proxy
focal_class.declarator: cluster
focal_class.modifier: protected
focal_class.original_string: protected String cluster;
focal_class.type: String
focal_class.var_name: cluster
focal_class.declarator: filter
focal_class.modifier: protected
focal_class.original_string: protected String filter;
focal_class.type: String
focal_class.var_name: filter
focal_class.declarator: listener
focal_class.modifier: protected
focal_class.original_string: protected String listener;
focal_class.type: String
focal_class.var_name: listener
focal_class.declarator: owner
focal_class.modifier: protected
focal_class.original_string: protected String owner;
focal_class.type: String
focal_class.var_name: owner
focal_class.declarator: connections
focal_class.modifier: protected
focal_class.original_string: protected Integer connections;
focal_class.type: Integer
focal_class.var_name: connections
focal_class.declarator: layer
focal_class.modifier: protected
focal_class.original_string: protected String layer;
focal_class.type: String
focal_class.var_name: layer
focal_class.declarator: application
focal_class.modifier: protected
focal_class.original_string: protected ApplicationConfig application;
focal_class.type: ApplicationConfig
focal_class.var_name: application
focal_class.declarator: module
focal_class.modifier: protected
focal_class.original_string: protected ModuleConfig module;
focal_class.type: ModuleConfig
focal_class.var_name: module
focal_class.declarator: registries
focal_class.modifier: protected
focal_class.original_string: protected List<RegistryConfig> registries;
focal_class.type: List<RegistryConfig>
focal_class.var_name: registries
focal_class.declarator: registryIds
focal_class.modifier: protected
focal_class.original_string: protected String registryIds;
focal_class.type: String
focal_class.var_name: registryIds
focal_class.declarator: onconnect
focal_class.modifier: protected
focal_class.original_string: protected String onconnect;
focal_class.type: String
focal_class.var_name: onconnect
focal_class.declarator: ondisconnect
focal_class.modifier: protected
focal_class.original_string: protected String ondisconnect;
focal_class.type: String
focal_class.var_name: ondisconnect
focal_class.declarator: metadataReportConfig
focal_class.modifier: protected
focal_class.original_string: protected MetadataReportConfig metadataReportConfig;
focal_class.type: MetadataReportConfig
focal_class.var_name: metadataReportConfig
focal_class.declarator: configCenter
focal_class.modifier: protected
focal_class.original_string: protected ConfigCenterConfig configCenter;
focal_class.type: ConfigCenterConfig
focal_class.var_name: configCenter
focal_class.declarator: callbacks
focal_class.modifier: private
focal_class.original_string: private Integer callbacks;
focal_class.type: Integer
focal_class.var_name: callbacks
focal_class.declarator: scope
focal_class.modifier: private
focal_class.original_string: private String scope;
focal_class.type: String
focal_class.var_name: scope
focal_class.declarator: tag
focal_class.modifier: private
focal_class.original_string: private String tag;
focal_class.type: String
focal_class.var_name: tag
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilder.java
focal_class.identifier: AbstractInterfaceBuilder
focal_class.class_method_signature: AbstractInterfaceBuilder.local(String local)
focal_class.full_signature: @Deprecated public B local(String local)
focal_class.identifier: local
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String local)
focal_class.return: B
focal_class.signature: B local(String local)
focal_class.class_method_signature: AbstractInterfaceBuilder.local(Boolean local)
focal_class.full_signature: @Deprecated public B local(Boolean local)
focal_class.identifier: local
focal_class.modifiers: @Deprecated public
focal_class.parameters: (Boolean local)
focal_class.return: B
focal_class.signature: B local(Boolean local)
focal_class.class_method_signature: AbstractInterfaceBuilder.stub(String stub)
focal_class.full_signature: public B stub(String stub)
focal_class.identifier: stub
focal_class.modifiers: public
focal_class.parameters: (String stub)
focal_class.return: B
focal_class.signature: B stub(String stub)
focal_class.class_method_signature: AbstractInterfaceBuilder.stub(Boolean stub)
focal_class.full_signature: public B stub(Boolean stub)
focal_class.identifier: stub
focal_class.modifiers: public
focal_class.parameters: (Boolean stub)
focal_class.return: B
focal_class.signature: B stub(Boolean stub)
focal_class.class_method_signature: AbstractInterfaceBuilder.monitor(MonitorConfig monitor)
focal_class.full_signature: public B monitor(MonitorConfig monitor)
focal_class.identifier: monitor
focal_class.modifiers: public
focal_class.parameters: (MonitorConfig monitor)
focal_class.return: B
focal_class.signature: B monitor(MonitorConfig monitor)
focal_class.class_method_signature: AbstractInterfaceBuilder.monitor(String monitor)
focal_class.full_signature: public B monitor(String monitor)
focal_class.identifier: monitor
focal_class.modifiers: public
focal_class.parameters: (String monitor)
focal_class.return: B
focal_class.signature: B monitor(String monitor)
focal_class.class_method_signature: AbstractInterfaceBuilder.proxy(String proxy)
focal_class.full_signature: public B proxy(String proxy)
focal_class.identifier: proxy
focal_class.modifiers: public
focal_class.parameters: (String proxy)
focal_class.return: B
focal_class.signature: B proxy(String proxy)
focal_class.class_method_signature: AbstractInterfaceBuilder.cluster(String cluster)
focal_class.full_signature: public B cluster(String cluster)
focal_class.identifier: cluster
focal_class.modifiers: public
focal_class.parameters: (String cluster)
focal_class.return: B
focal_class.signature: B cluster(String cluster)
focal_class.class_method_signature: AbstractInterfaceBuilder.filter(String filter)
focal_class.full_signature: public B filter(String filter)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (String filter)
focal_class.return: B
focal_class.signature: B filter(String filter)
focal_class.class_method_signature: AbstractInterfaceBuilder.listener(String listener)
focal_class.full_signature: public B listener(String listener)
focal_class.identifier: listener
focal_class.modifiers: public
focal_class.parameters: (String listener)
focal_class.return: B
focal_class.signature: B listener(String listener)
focal_class.class_method_signature: AbstractInterfaceBuilder.owner(String owner)
focal_class.full_signature: public B owner(String owner)
focal_class.identifier: owner
focal_class.modifiers: public
focal_class.parameters: (String owner)
focal_class.return: B
focal_class.signature: B owner(String owner)
focal_class.class_method_signature: AbstractInterfaceBuilder.connections(Integer connections)
focal_class.full_signature: public B connections(Integer connections)
focal_class.identifier: connections
focal_class.modifiers: public
focal_class.parameters: (Integer connections)
focal_class.return: B
focal_class.signature: B connections(Integer connections)
focal_class.class_method_signature: AbstractInterfaceBuilder.layer(String layer)
focal_class.full_signature: public B layer(String layer)
focal_class.identifier: layer
focal_class.modifiers: public
focal_class.parameters: (String layer)
focal_class.return: B
focal_class.signature: B layer(String layer)
focal_class.class_method_signature: AbstractInterfaceBuilder.application(ApplicationConfig application)
focal_class.full_signature: public B application(ApplicationConfig application)
focal_class.identifier: application
focal_class.modifiers: public
focal_class.parameters: (ApplicationConfig application)
focal_class.return: B
focal_class.signature: B application(ApplicationConfig application)
focal_class.class_method_signature: AbstractInterfaceBuilder.module(ModuleConfig module)
focal_class.full_signature: public B module(ModuleConfig module)
focal_class.identifier: module
focal_class.modifiers: public
focal_class.parameters: (ModuleConfig module)
focal_class.return: B
focal_class.signature: B module(ModuleConfig module)
focal_class.class_method_signature: AbstractInterfaceBuilder.addRegistries(List<RegistryConfig> registries)
focal_class.full_signature: public B addRegistries(List<RegistryConfig> registries)
focal_class.identifier: addRegistries
focal_class.modifiers: public
focal_class.parameters: (List<RegistryConfig> registries)
focal_class.return: B
focal_class.signature: B addRegistries(List<RegistryConfig> registries)
focal_class.class_method_signature: AbstractInterfaceBuilder.addRegistry(RegistryConfig registry)
focal_class.full_signature: public B addRegistry(RegistryConfig registry)
focal_class.identifier: addRegistry
focal_class.modifiers: public
focal_class.parameters: (RegistryConfig registry)
focal_class.return: B
focal_class.signature: B addRegistry(RegistryConfig registry)
focal_class.class_method_signature: AbstractInterfaceBuilder.registryIds(String registryIds)
focal_class.full_signature: public B registryIds(String registryIds)
focal_class.identifier: registryIds
focal_class.modifiers: public
focal_class.parameters: (String registryIds)
focal_class.return: B
focal_class.signature: B registryIds(String registryIds)
focal_class.class_method_signature: AbstractInterfaceBuilder.onconnect(String onconnect)
focal_class.full_signature: public B onconnect(String onconnect)
focal_class.identifier: onconnect
focal_class.modifiers: public
focal_class.parameters: (String onconnect)
focal_class.return: B
focal_class.signature: B onconnect(String onconnect)
focal_class.class_method_signature: AbstractInterfaceBuilder.ondisconnect(String ondisconnect)
focal_class.full_signature: public B ondisconnect(String ondisconnect)
focal_class.identifier: ondisconnect
focal_class.modifiers: public
focal_class.parameters: (String ondisconnect)
focal_class.return: B
focal_class.signature: B ondisconnect(String ondisconnect)
focal_class.class_method_signature: AbstractInterfaceBuilder.metadataReportConfig(MetadataReportConfig metadataReportConfig)
focal_class.full_signature: public B metadataReportConfig(MetadataReportConfig metadataReportConfig)
focal_class.identifier: metadataReportConfig
focal_class.modifiers: public
focal_class.parameters: (MetadataReportConfig metadataReportConfig)
focal_class.return: B
focal_class.signature: B metadataReportConfig(MetadataReportConfig metadataReportConfig)
focal_class.class_method_signature: AbstractInterfaceBuilder.configCenter(ConfigCenterConfig configCenter)
focal_class.full_signature: public B configCenter(ConfigCenterConfig configCenter)
focal_class.identifier: configCenter
focal_class.modifiers: public
focal_class.parameters: (ConfigCenterConfig configCenter)
focal_class.return: B
focal_class.signature: B configCenter(ConfigCenterConfig configCenter)
focal_class.class_method_signature: AbstractInterfaceBuilder.callbacks(Integer callbacks)
focal_class.full_signature: public B callbacks(Integer callbacks)
focal_class.identifier: callbacks
focal_class.modifiers: public
focal_class.parameters: (Integer callbacks)
focal_class.return: B
focal_class.signature: B callbacks(Integer callbacks)
focal_class.class_method_signature: AbstractInterfaceBuilder.scope(String scope)
focal_class.full_signature: public B scope(String scope)
focal_class.identifier: scope
focal_class.modifiers: public
focal_class.parameters: (String scope)
focal_class.return: B
focal_class.signature: B scope(String scope)
focal_class.class_method_signature: AbstractInterfaceBuilder.tag(String tag)
focal_class.full_signature: public B tag(String tag)
focal_class.identifier: tag
focal_class.modifiers: public
focal_class.parameters: (String tag)
focal_class.return: B
focal_class.signature: B tag(String tag)
focal_class.class_method_signature: AbstractInterfaceBuilder.build(T instance)
focal_class.full_signature: @Override public void build(T instance)
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: (T instance)
focal_class.return: void
focal_class.signature: void build(T instance)
focal_class.superclass: extends AbstractMethodBuilder<T, B>
focal_method.body: @Override
      public void build(T instance) {
          super.build(instance);
  
          if (!StringUtils.isEmpty(local)) {
              instance.setLocal(local);
          }
          if (!StringUtils.isEmpty(stub)) {
              instance.setStub(stub);
          }
          if (monitor != null) {
              instance.setMonitor(monitor);
          }
          if (!StringUtils.isEmpty(proxy)) {
              instance.setProxy(proxy);
          }
          if (!StringUtils.isEmpty(cluster)) {
              instance.setCluster(cluster);
          }
          if (!StringUtils.isEmpty(filter)) {
              instance.setFilter(filter);
          }
          if (!StringUtils.isEmpty(listener)) {
              instance.setListener(listener);
          }
          if (!StringUtils.isEmpty(owner)) {
              instance.setOwner(owner);
          }
          if (connections != null) {
              instance.setConnections(connections);
          }
          if (!StringUtils.isEmpty(layer)) {
              instance.setLayer(layer);
          }
          if (application != null) {
              instance.setApplication(application);
          }
          if (module != null) {
              instance.setModule(module);
          }
          if (registries != null) {
              instance.setRegistries(registries);
          }
          if (!StringUtils.isEmpty(registryIds)) {
              instance.setRegistryIds(registryIds);
          }
          if (!StringUtils.isEmpty(onconnect)) {
              instance.setOnconnect(onconnect);
          }
          if (!StringUtils.isEmpty(ondisconnect)) {
              instance.setOndisconnect(ondisconnect);
          }
          if (metadataReportConfig != null) {
              instance.setMetadataReportConfig(metadataReportConfig);
          }
          if (configCenter != null) {
              instance.setConfigCenter(configCenter);
          }
          if (callbacks != null) {
              instance.setCallbacks(callbacks);
          }
          if (!StringUtils.isEmpty(scope)) {
              instance.setScope(scope);
          }
          if (StringUtils.isNotEmpty(tag)) {
              instance.setTag(tag);
          }
      }
focal_method.class_method_signature: AbstractInterfaceBuilder.build(T instance)
focal_method.full_signature: @Override public void build(T instance)
focal_method.identifier: build
focal_method.invocations: build isEmpty setLocal isEmpty setStub setMonitor isEmpty setProxy isEmpty setCluster isEmpty setFilter isEmpty setListener isEmpty setOwner setConnections isEmpty setLayer setApplication setModule setRegistries isEmpty setRegistryIds isEmpty setOnconnect isEmpty setOndisconnect setMetadataReportConfig setConfigCenter setCallbacks isEmpty setScope isNotEmpty setTag
focal_method.modifiers: @Override public
focal_method.parameters: (T instance)
focal_method.return: void
focal_method.signature: void build(T instance)