public interface ModelCamelContext extends CamelContext
CamelContext| Modifier and Type | Method and Description |
|---|---|
void |
addRouteDefinition(RouteDefinition routeDefinition)
Add a route definition to the context
Important: Each route in the same
CamelContext must have an unique route id. |
void |
addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Adds a collection of route definitions to the context
Important: Each route in the same
CamelContext must have an unique route id. |
Map<String,DataFormatDefinition> |
getDataFormats()
Gets the data formats that can be referenced in the routes.
|
RouteDefinition |
getRouteDefinition(String id)
Gets the route definition with the given id
|
List<RouteDefinition> |
getRouteDefinitions()
Returns a list of the current route definitions
|
RoutesDefinition |
loadRoutesDefinition(InputStream is)
Loads a collection of route definitions from the given
InputStream. |
void |
removeRouteDefinition(RouteDefinition routeDefinition)
Removes a route definition from the context - stopping any previously running
routes if any of them are actively running
|
void |
removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Removes a collection of route definitions from the context - stopping any previously running
routes if any of them are actively running
|
DataFormatDefinition |
resolveDataFormatDefinition(String name)
Resolve a data format definition given its name
|
void |
setDataFormats(Map<String,DataFormatDefinition> dataFormats)
Sets the data formats that can be referenced in the routes.
|
void |
startRoute(RouteDefinition route)
Deprecated.
favor using
CamelContext.startRoute(String) |
void |
stopRoute(RouteDefinition route)
Deprecated.
favor using
CamelContext.stopRoute(String) |
addComponent, addEndpoint, addInterceptStrategy, addLifecycleStrategy, addRegisterEndpointCallback, addRoutes, addService, addStartupListener, createConsumerTemplate, createConsumerTemplate, createProducerTemplate, createProducerTemplate, disableJMX, getApplicationContextClassLoader, getClassResolver, getComponent, getComponent, getComponentNames, getDataFormatResolver, getDebugger, getDefaultFactoryFinder, getDefaultTracer, getEndpoint, getEndpoint, getEndpointMap, getEndpoints, getErrorHandlerBuilder, getErrorHandlerExecutorService, getExecutorServiceManager, getExecutorServiceStrategy, getFactoryFinder, getInflightRepository, getInjector, getInterceptStrategies, getLanguageNames, getLifecycleStrategies, getManagementMBeanAssembler, getManagementName, getManagementNameStrategy, getManagementStrategy, getName, getNameStrategy, getNodeIdFactory, getPackageScanClassResolver, getProcessorFactory, getProducerServicePool, getProperties, getPropertyPrefixToken, getPropertySuffixToken, getRegistry, getRoute, getRoutes, getRouteStatus, getShutdownStrategy, getStatus, getTypeConverter, getTypeConverterRegistry, getUptime, getUuidGenerator, getVersion, hasComponent, hasEndpoint, hasService, isLazyLoadTypeConverters, isStartingRoutes, isUseBreadcrumb, isUseMDCLogging, removeComponent, removeEndpoints, removeRoute, removeService, resolveDataFormat, resolveLanguage, resolvePropertyPlaceholders, resumeRoute, setApplicationContextClassLoader, setClassResolver, setDataFormatResolver, setDebugger, setDefaultTracer, setErrorHandlerBuilder, setExecutorServiceManager, setFactoryFinderResolver, setInflightRepository, setLazyLoadTypeConverters, setManagementNameStrategy, setManagementStrategy, setNameStrategy, setNodeIdFactory, setPackageScanClassResolver, setProcessorFactory, setProducerServicePool, setProperties, setShutdownStrategy, setUseBreadcrumb, setUseMDCLogging, setUuidGenerator, shutdownRoute, shutdownRoute, startRoute, stopRoute, stopRoute, stopRoute, suspendRoute, suspendRouteisSuspended, resume, suspendgetDelayer, getShutdownRoute, getShutdownRunningTask, isAutoStartup, isHandleFault, isStreamCaching, isTracing, setAutoStartup, setDelayer, setHandleFault, setShutdownRoute, setShutdownRunningTask, setStreamCaching, setTracingList<RouteDefinition> getRouteDefinitions()
getRouteDefinitions in interface CamelContextRouteDefinition getRouteDefinition(String id)
getRouteDefinition in interface CamelContextid - id of the routeRoutesDefinition loadRoutesDefinition(InputStream is) throws Exception
InputStream.loadRoutesDefinition in interface CamelContextis - input stream with the route(s) definition to addException - if the route definitions could not be loaded for whatever reasonvoid addRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
CamelContext must have an unique route id.
If you use the API from CamelContext or ModelCamelContext to add routes, then any
new routes which has a route id that matches an old route, then the old route is replaced by the new route.addRouteDefinitions in interface CamelContextrouteDefinitions - the route(s) definition to addException - if the route definitions could not be created for whatever reasonvoid addRouteDefinition(RouteDefinition routeDefinition) throws Exception
CamelContext must have an unique route id.
If you use the API from CamelContext or ModelCamelContext to add routes, then any
new routes which has a route id that matches an old route, then the old route is replaced by the new route.addRouteDefinition in interface CamelContextrouteDefinition - the route definition to addException - if the route definition could not be created for whatever reasonvoid removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
removeRouteDefinitions in interface CamelContextrouteDefinitions - route(s) definitions to removeException - if the route definitions could not be removed for whatever reasonvoid removeRouteDefinition(RouteDefinition routeDefinition) throws Exception
removeRouteDefinition in interface CamelContextrouteDefinition - route definition to removeException - if the route definition could not be removed for whatever reason@Deprecated void startRoute(RouteDefinition route) throws Exception
CamelContext.startRoute(String)startRoute in interface CamelContextroute - the route to startException - is thrown if the route could not be started for whatever reason@Deprecated void stopRoute(RouteDefinition route) throws Exception
CamelContext.stopRoute(String)stopRoute in interface CamelContextroute - the route to stopException - is thrown if the route could not be stopped for whatever reasonvoid setDataFormats(Map<String,DataFormatDefinition> dataFormats)
setDataFormats in interface CamelContextdataFormats - the data formatsMap<String,DataFormatDefinition> getDataFormats()
getDataFormats in interface CamelContextDataFormatDefinition resolveDataFormatDefinition(String name)
resolveDataFormatDefinition in interface CamelContextname - the data format definition name or a reference to it in the RegistryApache CAMEL