Package org.apache.camel.model
Class RouteConfigurationsDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<RouteConfigurationsDefinition>
org.apache.camel.model.RouteConfigurationsDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,RouteConfigurationContainer
,org.apache.camel.NamedNode
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
,org.apache.camel.spi.ResourceAware
@Metadata(label="configuration")
public class RouteConfigurationsDefinition
extends OptionalIdentifiedDefinition<RouteConfigurationsDefinition>
implements RouteConfigurationContainer, org.apache.camel.spi.ResourceAware
A series of route configurations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RouteConfigurationDefinition
org.apache.camel.CamelContext
getLabel()
org.apache.camel.spi.Resource
Returns the route configurationsCreates a new route configurationCreates a new route configurationAdds the route configurationvoid
setCamelContext
(org.apache.camel.CamelContext camelContext) void
setResource
(org.apache.camel.spi.Resource resource) void
setRouteConfigurations
(List<RouteConfigurationDefinition> routeConfigurations) Sets the route configurations to usetoString()
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getNodePrefixId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
RouteConfigurationsDefinition
public RouteConfigurationsDefinition()
-
-
Method Details
-
getShortName
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
-
toString
-
getRouteConfigurations
Description copied from interface:RouteConfigurationContainer
Returns the route configurations- Specified by:
getRouteConfigurations
in interfaceRouteConfigurationContainer
- Returns:
- the route configurations
-
setRouteConfigurations
Description copied from interface:RouteConfigurationContainer
Sets the route configurations to use- Specified by:
setRouteConfigurations
in interfaceRouteConfigurationContainer
- Parameters:
routeConfigurations
- the route configurations
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
- Overrides:
getCamelContext
in classOptionalIdentifiedDefinition<RouteConfigurationsDefinition>
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
- Overrides:
setCamelContext
in classOptionalIdentifiedDefinition<RouteConfigurationsDefinition>
-
getResource
public org.apache.camel.spi.Resource getResource()- Specified by:
getResource
in interfaceorg.apache.camel.spi.ResourceAware
-
setResource
public void setResource(org.apache.camel.spi.Resource resource) - Specified by:
setResource
in interfaceorg.apache.camel.spi.ResourceAware
-
routeConfiguration
Creates a new route configuration- Returns:
- the builder
-
routeConfiguration
Creates a new route configuration- Returns:
- the builder
-
routeConfiguration
Adds the route configuration- Returns:
- the builder
-
createRouteConfiguration
-