INNER CODE UNIT · Java

load

temporalio/sdk-java · temporal-envconfig/src/main/java/io/temporal/envconfig/ClientConfigProfile.java:47

  public static ClientConfigProfile load() throws IOException {
    return load(LoadClientConfigProfileOptions.newBuilder().build());
  }

  /**
   * Load a client profile from given sources, applying environment variable overrides.
   *
   * @param options options to control loading the profile
   * @throws IOException if the config file cannot be read or parsed
   */
  public static ClientConfigProfile load(LoadClientConfigProfileOptions options)
      throws IOException {
    if (options.isDisableFile() && options.isDisableEnv()) {
      throw new IllegalArgumentException("Cannot have both DisableFile and DisableEnv set to true");
    }
    Map<String, String> env = System.getenv();
    if (options.getEnvOverrides() != null) {
      env = options.getEnvOverrides();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…