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:
org.apache.camel.CamelContextAware
,org.apache.camel.Ordered
,org.apache.camel.RouteConfigurationsBuilder
,org.apache.camel.RoutesBuilder
,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
log
-
-
Constructor Summary
Constructors Constructor Description RouteConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context)
abstract void
configuration()
Called on initialization to build routes configuration (global routes configurations) using the fluent builder syntax.void
configure()
Called on initialization to build the routes using the fluent builder syntax.RouteConfigurationsDefinition
getRouteConfigurationCollection()
protected void
initializeCamelContext(org.apache.camel.CamelContext camelContext)
protected void
populateRoutesConfiguration()
RouteConfigurationDefinition
routeConfiguration()
Creates a new route configurationRouteConfigurationDefinition
routeConfiguration(String id)
Creates a new route configurationvoid
setRouteConfigurationCollection(RouteConfigurationsDefinition routeConfigurationCollection)
void
updateRouteConfigurationsToCamelContext(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, dataFormat, errorHandler, errorHandler, expression, from, from, from, fromF, getOrder, getResource, getRestCollection, getRestConfiguration, getRouteCollection, getRouteTemplateCollection, getTemplatedRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, setRouteCollection, setRouteTemplateCollection, setTemplatedRouteCollection, templatedRoute, toString, transformer, updateRoutesToCamelContext, validator
-
Methods inherited from class org.apache.camel.builder.BuilderSupport
body, bodyAs, constant, constant, constant, createErrorHandlerBuilder, csimple, csimple, datasonnet, datasonnet, datasonnet, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, expression, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, joor, joor, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, xpath, xpath, xpath, xpath
-
-
-
-
Method Detail
-
configure
public void configure() throws Exception
Description copied from class:RouteBuilder
Called 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:
configure
in classRouteBuilder
- Throws:
Exception
- can be thrown during configuration
-
configuration
public abstract void configuration() throws Exception
Description copied from class:RouteBuilder
Called on initialization to build routes configuration (global routes configurations) using the fluent builder syntax.- Overrides:
configuration
in classRouteBuilder
- Throws:
Exception
- can be thrown during configuration
-
getRouteConfigurationCollection
public RouteConfigurationsDefinition getRouteConfigurationCollection()
-
setRouteConfigurationCollection
public void setRouteConfigurationCollection(RouteConfigurationsDefinition routeConfigurationCollection)
-
routeConfiguration
public RouteConfigurationDefinition routeConfiguration()
Creates a new route configuration- Returns:
- the builder
-
routeConfiguration
public RouteConfigurationDefinition routeConfiguration(String id)
Creates a new route configuration- Returns:
- the builder
-
addRouteConfigurationsToCamelContext
public void addRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) throws Exception
- Specified by:
addRouteConfigurationsToCamelContext
in interfaceorg.apache.camel.RouteConfigurationsBuilder
- Throws:
Exception
-
updateRouteConfigurationsToCamelContext
public void updateRouteConfigurationsToCamelContext(org.apache.camel.CamelContext context) throws Exception
- Specified by:
updateRouteConfigurationsToCamelContext
in interfaceorg.apache.camel.RouteConfigurationsBuilder
- Throws:
Exception
-
initializeCamelContext
protected void initializeCamelContext(org.apache.camel.CamelContext camelContext)
- Overrides:
initializeCamelContext
in classRouteBuilder
-
-