Package org.apache.camel.xml.in
Class ModelParserXMLRoutesDefinitionLoader
- java.lang.Object
-
- org.apache.camel.xml.in.ModelParserXMLRoutesDefinitionLoader
-
- All Implemented Interfaces:
org.apache.camel.spi.XMLRoutesDefinitionLoader
@JdkService("xmlroutes-loader") public class ModelParserXMLRoutesDefinitionLoader extends Object implements org.apache.camel.spi.XMLRoutesDefinitionLoader
XMLRoutesDefinitionLoader
that usesModelParser
to load and parse the routes from XML which is fast and light-weight compared to the default that uses JAXB.
-
-
Constructor Summary
Constructors Constructor Description ModelParserXMLRoutesDefinitionLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.apache.camel.NamedNode>
TcreateModelFromXml(org.apache.camel.CamelContext context, String xml, Class<T> type)
Object
loadRestsDefinition(org.apache.camel.CamelContext context, InputStream inputStream)
Object
loadRoutesDefinition(org.apache.camel.CamelContext context, InputStream inputStream)
String
toString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadRoutesDefinition
public Object loadRoutesDefinition(org.apache.camel.CamelContext context, InputStream inputStream) throws Exception
- Specified by:
loadRoutesDefinition
in interfaceorg.apache.camel.spi.XMLRoutesDefinitionLoader
- Throws:
Exception
-
loadRestsDefinition
public Object loadRestsDefinition(org.apache.camel.CamelContext context, InputStream inputStream) throws Exception
- Specified by:
loadRestsDefinition
in interfaceorg.apache.camel.spi.XMLRoutesDefinitionLoader
- Throws:
Exception
-
createModelFromXml
public <T extends org.apache.camel.NamedNode> T createModelFromXml(org.apache.camel.CamelContext context, String xml, Class<T> type) throws Exception
- Specified by:
createModelFromXml
in interfaceorg.apache.camel.spi.XMLRoutesDefinitionLoader
- Throws:
Exception
-
-