Package org.apache.camel.spi
Interface ModelToXMLDumper
public interface ModelToXMLDumper
SPI for dumping model definitions into XML representation.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondumpBeansAsXml
(CamelContext context, List<Object> beans) Dumps the beans as XMLdumpModelAsXml
(CamelContext context, NamedNode definition) Dumps the definition as XMLdumpModelAsXml
(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean generatedIds) Dumps the definition as XML
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
dumpModelAsXml
Dumps the definition as XML -
dumpModelAsXml
String dumpModelAsXml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean generatedIds) throws Exception Dumps the definition as XML- Parameters:
context
- the CamelContextdefinition
- the definition, such as aNamedNode
resolvePlaceholders
- whether to resolve property placeholders in the dumped XMLgeneratedIds
- whether to include auto generated IDs- Returns:
- the output in XML (is formatted)
- Throws:
Exception
- is throw if error marshalling to XML
-
dumpBeansAsXml
Dumps the beans as XML- Parameters:
context
- the CamelContextbeans
- list of beans (BeanFactoryDefinition)- Returns:
- the output in XML (is formatted)
- Throws:
Exception
- is throw if error marshalling to XML
-