test_class.file: dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilderTest.java
test_class.identifier: ApplicationBuilderTest
test_case.body: @Test
      void build() {
          MonitorConfig monitor = new MonitorConfig("monitor-addr");
          RegistryConfig registry = new RegistryConfig();
  
          ApplicationBuilder builder = new ApplicationBuilder();
          builder.id("id").prefix("prefix").name("name").version("version").owner("owner").organization("organization").architecture("architecture")
                  .environment("develop").compiler("compiler").logger("log4j").monitor(monitor).isDefault(false)
                  .dumpDirectory("dumpDirectory").qosEnable(true).qosPort(8080).qosAcceptForeignIp(false)
                  .shutwait("shutwait").registryIds("registryIds").addRegistry(registry)
                  .appendParameter("default.num", "one").metadataServicePort(12345);
  
          ApplicationConfig config = builder.build();
          ApplicationConfig config2 = builder.build();
  
          Assertions.assertEquals("id", config.getId());
          Assertions.assertEquals("prefix", config.getPrefix());
          Assertions.assertEquals("name", config.getName());
          Assertions.assertEquals("version", config.getVersion());
          Assertions.assertEquals("owner", config.getOwner());
          Assertions.assertEquals("organization", config.getOrganization());
          Assertions.assertEquals("architecture", config.getArchitecture());
          Assertions.assertEquals("develop", config.getEnvironment());
          Assertions.assertEquals("compiler", config.getCompiler());
          Assertions.assertEquals("log4j", config.getLogger());
          Assertions.assertSame(monitor, config.getMonitor());
          Assertions.assertFalse(config.isDefault());
          Assertions.assertEquals("dumpDirectory", config.getDumpDirectory());
          Assertions.assertTrue(config.getQosEnable());
          Assertions.assertEquals(8080, config.getQosPort());
          Assertions.assertFalse(config.getQosAcceptForeignIp());
          Assertions.assertEquals("shutwait", config.getShutwait());
          Assertions.assertEquals("registryIds", config.getRegistryIds());
          Assertions.assertSame(registry, config.getRegistry());
          Assertions.assertTrue(config.getParameters().containsKey("default.num"));
          Assertions.assertEquals("one", config.getParameters().get("default.num"));
          Assertions.assertEquals(12345, config.getMetadataServicePort());
  
          Assertions.assertNotSame(config, config2);
      }
test_case.class_method_signature: ApplicationBuilderTest.build()
test_case.full_signature: @Test void build()
test_case.identifier: build
test_case.invocations: metadataServicePort appendParameter addRegistry registryIds shutwait qosAcceptForeignIp qosPort qosEnable dumpDirectory isDefault monitor logger compiler environment architecture organization owner version name prefix id build build assertEquals getId assertEquals getPrefix assertEquals getName assertEquals getVersion assertEquals getOwner assertEquals getOrganization assertEquals getArchitecture assertEquals getEnvironment assertEquals getCompiler assertEquals getLogger assertSame getMonitor assertFalse isDefault assertEquals getDumpDirectory assertTrue getQosEnable assertEquals getQosPort assertFalse getQosAcceptForeignIp assertEquals getShutwait assertEquals getRegistryIds assertSame getRegistry assertTrue containsKey getParameters assertEquals get getParameters assertEquals getMetadataServicePort assertNotSame
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: metadata
focal_class.modifier: private
focal_class.original_string: private String metadata;
focal_class.type: String
focal_class.var_name: metadata
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: owner
focal_class.modifier: private
focal_class.original_string: private String owner;
focal_class.type: String
focal_class.var_name: owner
focal_class.declarator: organization
focal_class.modifier: private
focal_class.original_string: private String organization;
focal_class.type: String
focal_class.var_name: organization
focal_class.declarator: architecture
focal_class.modifier: private
focal_class.original_string: private String architecture;
focal_class.type: String
focal_class.var_name: architecture
focal_class.declarator: environment = PRODUCTION_ENVIRONMENT
focal_class.modifier: private
focal_class.original_string: private String environment = PRODUCTION_ENVIRONMENT;
focal_class.type: String
focal_class.var_name: environment
focal_class.declarator: compiler
focal_class.modifier: private
focal_class.original_string: private String compiler;
focal_class.type: String
focal_class.var_name: compiler
focal_class.declarator: logger
focal_class.modifier: private
focal_class.original_string: private String logger;
focal_class.type: String
focal_class.var_name: logger
focal_class.declarator: registries
focal_class.modifier: private
focal_class.original_string: private List<RegistryConfig> registries;
focal_class.type: List<RegistryConfig>
focal_class.var_name: registries
focal_class.declarator: registryIds
focal_class.modifier: private
focal_class.original_string: private String registryIds;
focal_class.type: String
focal_class.var_name: registryIds
focal_class.declarator: monitor
focal_class.modifier: private
focal_class.original_string: private MonitorConfig monitor;
focal_class.type: MonitorConfig
focal_class.var_name: monitor
focal_class.declarator: isDefault
focal_class.modifier: private
focal_class.original_string: private Boolean isDefault;
focal_class.type: Boolean
focal_class.var_name: isDefault
focal_class.declarator: dumpDirectory
focal_class.modifier: private
focal_class.original_string: private String dumpDirectory;
focal_class.type: String
focal_class.var_name: dumpDirectory
focal_class.declarator: qosEnable
focal_class.modifier: private
focal_class.original_string: private Boolean qosEnable;
focal_class.type: Boolean
focal_class.var_name: qosEnable
focal_class.declarator: qosPort
focal_class.modifier: private
focal_class.original_string: private Integer qosPort;
focal_class.type: Integer
focal_class.var_name: qosPort
focal_class.declarator: qosAcceptForeignIp
focal_class.modifier: private
focal_class.original_string: private Boolean qosAcceptForeignIp;
focal_class.type: Boolean
focal_class.var_name: qosAcceptForeignIp
focal_class.declarator: parameters
focal_class.modifier: private
focal_class.original_string: private Map<String, String> parameters;
focal_class.type: Map<String, String>
focal_class.var_name: parameters
focal_class.declarator: shutwait
focal_class.modifier: private
focal_class.original_string: private String shutwait;
focal_class.type: String
focal_class.var_name: shutwait
focal_class.declarator: metadataServicePort
focal_class.modifier: private
focal_class.original_string: private Integer metadataServicePort;
focal_class.type: Integer
focal_class.var_name: metadataServicePort
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilder.java
focal_class.identifier: ApplicationBuilder
focal_class.class_method_signature: ApplicationBuilder.newBuilder()
focal_class.full_signature: public static ApplicationBuilder newBuilder()
focal_class.identifier: newBuilder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder newBuilder()
focal_class.class_method_signature: ApplicationBuilder.name(String name)
focal_class.full_signature: public ApplicationBuilder name(String name)
focal_class.identifier: name
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder name(String name)
focal_class.class_method_signature: ApplicationBuilder.metadata(String metadata)
focal_class.full_signature: public ApplicationBuilder metadata(String metadata)
focal_class.identifier: metadata
focal_class.modifiers: public
focal_class.parameters: (String metadata)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder metadata(String metadata)
focal_class.class_method_signature: ApplicationBuilder.version(String version)
focal_class.full_signature: public ApplicationBuilder version(String version)
focal_class.identifier: version
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder version(String version)
focal_class.class_method_signature: ApplicationBuilder.owner(String owner)
focal_class.full_signature: public ApplicationBuilder owner(String owner)
focal_class.identifier: owner
focal_class.modifiers: public
focal_class.parameters: (String owner)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder owner(String owner)
focal_class.class_method_signature: ApplicationBuilder.organization(String organization)
focal_class.full_signature: public ApplicationBuilder organization(String organization)
focal_class.identifier: organization
focal_class.modifiers: public
focal_class.parameters: (String organization)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder organization(String organization)
focal_class.class_method_signature: ApplicationBuilder.architecture(String architecture)
focal_class.full_signature: public ApplicationBuilder architecture(String architecture)
focal_class.identifier: architecture
focal_class.modifiers: public
focal_class.parameters: (String architecture)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder architecture(String architecture)
focal_class.class_method_signature: ApplicationBuilder.environment(String environment)
focal_class.full_signature: public ApplicationBuilder environment(String environment)
focal_class.identifier: environment
focal_class.modifiers: public
focal_class.parameters: (String environment)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder environment(String environment)
focal_class.class_method_signature: ApplicationBuilder.compiler(String compiler)
focal_class.full_signature: public ApplicationBuilder compiler(String compiler)
focal_class.identifier: compiler
focal_class.modifiers: public
focal_class.parameters: (String compiler)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder compiler(String compiler)
focal_class.class_method_signature: ApplicationBuilder.logger(String logger)
focal_class.full_signature: public ApplicationBuilder logger(String logger)
focal_class.identifier: logger
focal_class.modifiers: public
focal_class.parameters: (String logger)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder logger(String logger)
focal_class.class_method_signature: ApplicationBuilder.addRegistry(RegistryConfig registry)
focal_class.full_signature: public ApplicationBuilder addRegistry(RegistryConfig registry)
focal_class.identifier: addRegistry
focal_class.modifiers: public
focal_class.parameters: (RegistryConfig registry)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder addRegistry(RegistryConfig registry)
focal_class.class_method_signature: ApplicationBuilder.addRegistries(List<? extends RegistryConfig> registries)
focal_class.full_signature: public ApplicationBuilder addRegistries(List<? extends RegistryConfig> registries)
focal_class.identifier: addRegistries
focal_class.modifiers: public
focal_class.parameters: (List<? extends RegistryConfig> registries)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder addRegistries(List<? extends RegistryConfig> registries)
focal_class.class_method_signature: ApplicationBuilder.registryIds(String registryIds)
focal_class.full_signature: public ApplicationBuilder registryIds(String registryIds)
focal_class.identifier: registryIds
focal_class.modifiers: public
focal_class.parameters: (String registryIds)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder registryIds(String registryIds)
focal_class.class_method_signature: ApplicationBuilder.monitor(MonitorConfig monitor)
focal_class.full_signature: public ApplicationBuilder monitor(MonitorConfig monitor)
focal_class.identifier: monitor
focal_class.modifiers: public
focal_class.parameters: (MonitorConfig monitor)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder monitor(MonitorConfig monitor)
focal_class.class_method_signature: ApplicationBuilder.monitor(String monitor)
focal_class.full_signature: public ApplicationBuilder monitor(String monitor)
focal_class.identifier: monitor
focal_class.modifiers: public
focal_class.parameters: (String monitor)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder monitor(String monitor)
focal_class.class_method_signature: ApplicationBuilder.isDefault(Boolean isDefault)
focal_class.full_signature: public ApplicationBuilder isDefault(Boolean isDefault)
focal_class.identifier: isDefault
focal_class.modifiers: public
focal_class.parameters: (Boolean isDefault)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder isDefault(Boolean isDefault)
focal_class.class_method_signature: ApplicationBuilder.dumpDirectory(String dumpDirectory)
focal_class.full_signature: public ApplicationBuilder dumpDirectory(String dumpDirectory)
focal_class.identifier: dumpDirectory
focal_class.modifiers: public
focal_class.parameters: (String dumpDirectory)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder dumpDirectory(String dumpDirectory)
focal_class.class_method_signature: ApplicationBuilder.qosEnable(Boolean qosEnable)
focal_class.full_signature: public ApplicationBuilder qosEnable(Boolean qosEnable)
focal_class.identifier: qosEnable
focal_class.modifiers: public
focal_class.parameters: (Boolean qosEnable)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder qosEnable(Boolean qosEnable)
focal_class.class_method_signature: ApplicationBuilder.qosPort(Integer qosPort)
focal_class.full_signature: public ApplicationBuilder qosPort(Integer qosPort)
focal_class.identifier: qosPort
focal_class.modifiers: public
focal_class.parameters: (Integer qosPort)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder qosPort(Integer qosPort)
focal_class.class_method_signature: ApplicationBuilder.qosAcceptForeignIp(Boolean qosAcceptForeignIp)
focal_class.full_signature: public ApplicationBuilder qosAcceptForeignIp(Boolean qosAcceptForeignIp)
focal_class.identifier: qosAcceptForeignIp
focal_class.modifiers: public
focal_class.parameters: (Boolean qosAcceptForeignIp)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder qosAcceptForeignIp(Boolean qosAcceptForeignIp)
focal_class.class_method_signature: ApplicationBuilder.shutwait(String shutwait)
focal_class.full_signature: public ApplicationBuilder shutwait(String shutwait)
focal_class.identifier: shutwait
focal_class.modifiers: public
focal_class.parameters: (String shutwait)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder shutwait(String shutwait)
focal_class.class_method_signature: ApplicationBuilder.appendParameter(String key, String value)
focal_class.full_signature: public ApplicationBuilder appendParameter(String key, String value)
focal_class.identifier: appendParameter
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder appendParameter(String key, String value)
focal_class.class_method_signature: ApplicationBuilder.appendParameters(Map<String, String> appendParameters)
focal_class.full_signature: public ApplicationBuilder appendParameters(Map<String, String> appendParameters)
focal_class.identifier: appendParameters
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> appendParameters)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder appendParameters(Map<String, String> appendParameters)
focal_class.class_method_signature: ApplicationBuilder.metadataServicePort(Integer metadataServicePort)
focal_class.full_signature: public ApplicationBuilder metadataServicePort(Integer metadataServicePort)
focal_class.identifier: metadataServicePort
focal_class.modifiers: public
focal_class.parameters: (Integer metadataServicePort)
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder metadataServicePort(Integer metadataServicePort)
focal_class.class_method_signature: ApplicationBuilder.build()
focal_class.full_signature: public ApplicationConfig build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ApplicationConfig
focal_class.signature: ApplicationConfig build()
focal_class.class_method_signature: ApplicationBuilder.getThis()
focal_class.full_signature: @Override protected ApplicationBuilder getThis()
focal_class.identifier: getThis
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: ApplicationBuilder
focal_class.signature: ApplicationBuilder getThis()
focal_class.superclass: extends AbstractBuilder<ApplicationConfig, ApplicationBuilder>
focal_method.body: public ApplicationConfig build() {
          ApplicationConfig config = new ApplicationConfig();
          super.build(config);
  
          config.setName(name);
          config.setMetadataType(metadata);
          config.setVersion(this.version);
          config.setOwner(this.owner);
          config.setOrganization(this.organization);
          config.setArchitecture(this.architecture);
          config.setEnvironment(this.environment);
          config.setCompiler(this.compiler);
          config.setLogger(this.logger);
          config.setRegistries(this.registries);
          config.setRegistryIds(this.registryIds);
          config.setMonitor(this.monitor);
          config.setDefault(this.isDefault);
          config.setDumpDirectory(this.dumpDirectory);
          config.setQosEnable(this.qosEnable);
          config.setQosPort(this.qosPort);
          config.setQosAcceptForeignIp(this.qosAcceptForeignIp);
          config.setMetadataServicePort(this.metadataServicePort);
          config.setParameters(this.parameters);
          if (!StringUtils.isEmpty(shutwait)) {
              config.setShutwait(shutwait);
          }
          return config;
      }
focal_method.class_method_signature: ApplicationBuilder.build()
focal_method.full_signature: public ApplicationConfig build()
focal_method.identifier: build
focal_method.invocations: build setName setMetadataType setVersion setOwner setOrganization setArchitecture setEnvironment setCompiler setLogger setRegistries setRegistryIds setMonitor setDefault setDumpDirectory setQosEnable setQosPort setQosAcceptForeignIp setMetadataServicePort setParameters isEmpty setShutwait
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ApplicationConfig
focal_method.signature: ApplicationConfig build()