Class YamlHelper
java.lang.Object
org.apache.camel.dsl.jbang.core.common.YamlHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.yaml.snakeyaml.Yamlyaml()Creates new Yaml instance.static org.yaml.snakeyaml.Yamlyaml(ClassLoader classLoader) Creates new Yaml instance.
-
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
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.
-