ImportResource instead:
@ImportResource("foo-camel-context.xml")
class BarBean {
};
@Vetoed @Deprecated public final class RoutesXml extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromClasspath(org.apache.camel.model.ModelCamelContext camelContext,
String uri)
Deprecated.
Loads the routes from the classpath
|
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
File file)
Deprecated.
Loads the routes from a
File |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
String fileName)
Deprecated.
Loads the routes from a
File |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
String url)
Deprecated.
Loads the routes from a
URL |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
URL url)
Deprecated.
Loads the routes from a
URL |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromXML(org.apache.camel.model.ModelCamelContext camelContext,
String xml)
Deprecated.
Loads the routes from the given XML content
|
public static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(org.apache.camel.model.ModelCamelContext camelContext,
String xml)
throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(org.apache.camel.model.ModelCamelContext camelContext,
String uri)
throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
URL url)
throws JAXBException,
IOException
URLJAXBExceptionIOExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
String url)
throws IOException,
JAXBException
URLIOExceptionJAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
File file)
throws JAXBException,
FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
String fileName)
throws JAXBException,
FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionApache Camel