Package org.apache.camel.spi
Interface ModelToYAMLDumper
public interface ModelToYAMLDumper
SPI for dumping model definitions into YAML representation.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondumpBeansAsYaml
(CamelContext context, List<Object> beans) Dumps the beans as YAMLdumpModelAsYaml
(CamelContext context, NamedNode definition) Dumps the definition as YAMLdumpModelAsYaml
(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean uriAsParameters, boolean generatedIds) 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, boolean generatedIds) 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 parametersgeneratedIds
- whether to include auto generated IDs- Returns:
- the output in YAML (is formatted)
- Throws:
Exception
- is throw if error marshalling to YAML
-
dumpBeansAsYaml
Dumps the beans as YAML- Parameters:
context
- the CamelContextbeans
- list of beans (BeanFactoryDefinition)- Returns:
- the output in YAML (is formatted)
- Throws:
Exception
- is throw if error marshalling to YAML
-