// Implementation methods
// -------------------------------------------------------------------------
protected void addRoutes(Collection<Route> routes, FromType fromType) throws Exception {
RouteContext routeContext = new RouteContext(this, fromType, routes);
routeContext.getEndpoint(); // force endpoint resolution
if (camelContext != null) {
camelContext.getLifecycleStrategy().onRouteContextCreate(routeContext);
}
List<ProcessorType<?>> list = new ArrayList<ProcessorType<?>>(outputs);
for (ProcessorType output : list) {
output.addRoutes(routeContext, routes);
}
routeContext.commit();
}