Package org.apache.camel.model
Class TemplatedRoutesDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<TemplatedRoutesDefinition>
org.apache.camel.model.TemplatedRoutesDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.LineNumberAware,TemplatedRouteContainer,org.apache.camel.NamedNode,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware
@Metadata(label="configuration")
public class TemplatedRoutesDefinition
extends OptionalIdentifiedDefinition<TemplatedRoutesDefinition>
implements TemplatedRouteContainer, org.apache.camel.CamelContextAware
A series of templated routes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.CamelContextgetLabel()Returns the templated routesvoidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetTemplatedRoutes(List<TemplatedRouteDefinition> templatedRoutes) The templated routestemplatedRoute(String routeTemplateId) Creates a templated routetemplatedRoute(TemplatedRouteDefinition template) Adds theTemplatedRouteDefinitiontoString()Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
-
Constructor Details
-
TemplatedRoutesDefinition
public TemplatedRoutesDefinition()
-
-
Method Details
-
toString
-
getShortName
- Specified by:
getShortNamein interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode
-
getTemplatedRoutes
Description copied from interface:TemplatedRouteContainerReturns the templated routes- Specified by:
getTemplatedRoutesin interfaceTemplatedRouteContainer- Returns:
- the templated routes
-
setTemplatedRoutes
The templated routes- Specified by:
setTemplatedRoutesin interfaceTemplatedRouteContainer- Parameters:
templatedRoutes- the templated routes
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext- Overrides:
getCamelContextin classOptionalIdentifiedDefinition<TemplatedRoutesDefinition>
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware- Overrides:
setCamelContextin classOptionalIdentifiedDefinition<TemplatedRoutesDefinition>
-
templatedRoute
Creates a templated route- Parameters:
routeTemplateId- the id of the route template
-
templatedRoute
Adds theTemplatedRouteDefinition
-