Package org.apache.camel.spi
Interface ModelToYAMLDumper
public interface ModelToYAMLDumper
SPI for dumping model definitions into YAML representation.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondumpModelAsYaml
(CamelContext context, NamedNode definition) Dumps the definition as YAMLdumpModelAsYaml
(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean uriAsParameters) Dumps the definition as YAML
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
dumpModelAsYaml
Dumps the definition as YAML -
dumpModelAsYaml
String dumpModelAsYaml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean uriAsParameters) throws Exception Dumps the definition as YAML- Parameters:
context
- the CamelContextdefinition
- the definition, such as aNamedNode
resolvePlaceholders
- whether to resolve property placeholders in the dumped YAMLuriAsParameters
- whether to expand uri into a key/value parameters- Returns:
- the output in YAML (is formatted)
- Throws:
Exception
- is throw if error marshalling to YAML
-