INNER CODE UNIT · Java

load

temporalio/sdk-java · temporal-envconfig/src/main/java/io/temporal/envconfig/ClientConfig.java:81

  public static ClientConfig load() throws IOException {
    return load(LoadClientConfigOptions.newBuilder().build());
  }

  /**
   * Load all client profiles from given sources.
   *
   * <p>This does not apply environment variable overrides to the profiles, it only uses an
   * environment variable to find the default config file path (TEMPORAL_CONFIG_FILE). To get a
   * single profile with environment variables applied, use {@link ClientConfigProfile#load}.
   *
   * @param options options to control loading the config
   * @throws IOException if the config file cannot be read or parsed
   */
  public static ClientConfig load(LoadClientConfigOptions options) throws IOException {
    ObjectReader reader = new TomlMapper().readerFor(ClientConfigToml.TomlClientConfig.class);
    if (options.isStrictConfigFile()) {
      reader =

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…