blob: ec844954a546eb31551fe66702bd35cb704010dc [file] [log] [blame]
package org.apache.karaf.camel.itests;
import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
/**
* The interface that provides the ability to supply Camel routes to create and start in the Camel context.
*/
public interface CamelRouteSupplier {
/**
* Configures the Camel context before creating the routes.
*
* @param camelContext the Camel context
*/
default void configure(CamelContext camelContext) {
// Do nothing by default
}
/**
* Creates the Camel routes in the Camel context.
*
* @param builder the Camel route builder
*/
void createRoutes(RouteBuilder builder);
}