Package org.apache.camel.spi
Interface XMLRoutesDefinitionLoader
-
public interface XMLRoutesDefinitionLoader
SPI for loading routes/rests from XML input streams and parsing this to model definition classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends NamedNode>
TcreateModelFromXml(CamelContext context, String xml, Class<T> type)
Creates a model of the given type from the xmlObject
loadRestsDefinition(CamelContext context, InputStream inputStream)
Loads from XML into rests.Object
loadRoutesDefinition(CamelContext context, InputStream inputStream)
Loads from XML into routes.
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadRoutesDefinition
Object loadRoutesDefinition(CamelContext context, InputStream inputStream) throws Exception
Loads from XML into routes.- Throws:
Exception
-
loadRestsDefinition
Object loadRestsDefinition(CamelContext context, InputStream inputStream) throws Exception
Loads from XML into rests.- Throws:
Exception
-
-