Class YamlHelper

java.lang.Object
org.apache.camel.dsl.jbang.core.common.YamlHelper

public final class YamlHelper extends Object
  • Method Details

    • yaml

      public static org.yaml.snakeyaml.Yaml yaml()
      Creates new Yaml instance. The implementation provided by Snakeyaml is not thread-safe. It is better to create a fresh instance for every YAML stream.
    • yaml

      public static org.yaml.snakeyaml.Yaml yaml(ClassLoader classLoader)
      Creates new Yaml instance. The implementation provided by Snakeyaml is not thread-safe. It is better to create a fresh instance for every YAML stream. Uses the given class loader as base constructor. This is mandatory when additional classes have been downloaded via Maven for instance when loading a Camel JBang plugin.