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
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(org.apache.camel.model.ModelCamelContext camelContext, String uri) throws JAXBException
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext, URL url) throws JAXBException, IOException
URL
JAXBException
IOException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext, String url) throws IOException, JAXBException
URL
IOException
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext, File file) throws JAXBException, FileNotFoundException
File
JAXBException
FileNotFoundException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext, String fileName) throws JAXBException, FileNotFoundException
File
JAXBException
FileNotFoundException
Apache Camel