INNER CODE UNIT · Java

fromToml

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

  public static ClientConfig fromToml(byte[] tomlData) throws IOException {
    return fromToml(tomlData, ClientConfigFromTomlOptions.getDefaultInstance());
  }

  /**
   * Load client config from given TOML data.
   *
   * @param tomlData TOML data to parse
   * @param options options to control parsing the TOML data
   * @return the parsed client config
   * @throws IOException if the TOML data cannot be parsed
   */
  public static ClientConfig fromToml(byte[] tomlData, ClientConfigFromTomlOptions options)
      throws IOException {
    ObjectReader reader = new TomlMapper().readerFor(ClientConfigToml.TomlClientConfig.class);
    if (options.isStrictConfigFile()) {
      reader =
          reader.withFeatures(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…