Package org.apache.camel.builder
Class RouteConfigurationBuilder
java.lang.Object
org.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
org.apache.camel.builder.RouteConfigurationBuilder
- All Implemented Interfaces:
ModelRoutesBuilder,org.apache.camel.CamelContextAware,org.apache.camel.Ordered,org.apache.camel.RouteConfigurationsBuilder,org.apache.camel.RoutesBuilder,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.ResourceAware
public abstract class RouteConfigurationBuilder
extends RouteBuilder
implements org.apache.camel.RouteConfigurationsBuilder
A Java DSL which is used for building route configuration(s).
-
Field Summary
Fields inherited from class org.apache.camel.builder.RouteBuilder
logFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) abstract voidCalled on initialization to build routes configuration (global routes configurations) using the fluent builder syntax.voidCalled on initialization to build the routes using the fluent builder syntax.protected voidinitializeCamelContext(org.apache.camel.CamelContext camelContext) protected voidCreates a new route configurationCreates a new route configurationvoidsetRouteConfigurationCollection(RouteConfigurationsDefinition routeConfigurationCollection) voidupdateRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) Methods inherited from class org.apache.camel.builder.RouteBuilder
addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, addTemplatedRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, customize, customize, dataFormat, errorHandler, errorHandler, expression, from, from, from, fromF, fromV, fromV, getBeans, getOrder, getResource, getRestCollection, getRestConfiguration, getRests, getRouteCollection, getRoutes, getRouteTemplateCollection, getTemplatedRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateBeans, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, prepareModel, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, setRouteTemplateCollection, setTemplatedRouteCollection, templatedRoute, tokenizer, toString, transformer, updateRoutesToCamelContext, validatorMethods inherited from class org.apache.camel.builder.BuilderSupport
body, bodyAs, constant, constant, constant, createErrorHandlerBuilder, csimple, csimple, datasonnet, datasonnet, datasonnet, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, exceptionMessage, exchangeProperty, expression, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, java, java, joor, joor, jq, jq, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, variable, xpath, xpath, xpath, xpath
-
Constructor Details
-
RouteConfigurationBuilder
public RouteConfigurationBuilder()
-
-
Method Details
-
configure
Description copied from class:RouteBuilderCalled on initialization to build the routes using the fluent builder syntax. This is a central method for RouteBuilder implementations to implement the routes using the Java fluent builder syntax.- Specified by:
configurein classRouteBuilder- Throws:
Exception- can be thrown during configuration
-
configuration
Description copied from class:RouteBuilderCalled on initialization to build routes configuration (global routes configurations) using the fluent builder syntax.- Overrides:
configurationin classRouteBuilder- Throws:
Exception- can be thrown during configuration
-
getRouteConfigurationCollection
-
setRouteConfigurationCollection
public void setRouteConfigurationCollection(RouteConfigurationsDefinition routeConfigurationCollection) -
routeConfiguration
Creates a new route configuration- Returns:
- the builder
-
routeConfiguration
Creates a new route configuration- Returns:
- the builder
-
addRouteConfigurationsToCamelContext
public void addRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) throws Exception - Specified by:
addRouteConfigurationsToCamelContextin interfaceorg.apache.camel.RouteConfigurationsBuilder- Throws:
Exception
-
updateRouteConfigurationsToCamelContext
public void updateRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) throws Exception - Specified by:
updateRouteConfigurationsToCamelContextin interfaceorg.apache.camel.RouteConfigurationsBuilder- Throws:
Exception
-
initializeCamelContext
protected void initializeCamelContext(org.apache.camel.CamelContext camelContext) - Overrides:
initializeCamelContextin classRouteBuilder
-
populateRoutesConfiguration
- Throws:
Exception
-