Package org.apache.camel.model
Class RouteTemplatesDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<RouteTemplatesDefinition>
org.apache.camel.model.RouteTemplatesDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.LineNumberAware,RouteTemplateContainer,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 RouteTemplatesDefinition
extends OptionalIdentifiedDefinition<RouteTemplatesDefinition>
implements RouteTemplateContainer, org.apache.camel.CamelContextAware, org.apache.camel.spi.ResourceAware
A series of route templates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RouteTemplateDefinitionorg.apache.camel.CamelContextorg.apache.camel.ErrorHandlerFactorygetLabel()org.apache.camel.spi.ResourceReturns the route templatesrouteTemplate(String id) Creates a route templaterouteTemplate(RouteTemplateDefinition template) Adds theRouteTemplatesDefinitionvoidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) voidsetResource(org.apache.camel.spi.Resource resource) voidsetRouteTemplates(List<RouteTemplateDefinition> routeTemplates) The route templatestoString()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, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
RouteTemplatesDefinition
public RouteTemplatesDefinition()
-
-
Method Details
-
toString
-
getShortName
- Specified by:
getShortNamein interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode
-
getRouteTemplates
Description copied from interface:RouteTemplateContainerReturns the route templates- Specified by:
getRouteTemplatesin interfaceRouteTemplateContainer- Returns:
- the route templates
-
setRouteTemplates
The route templates- Specified by:
setRouteTemplatesin interfaceRouteTemplateContainer- Parameters:
routeTemplates- the route templates
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext- Overrides:
getCamelContextin classOptionalIdentifiedDefinition<RouteTemplatesDefinition>
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware- Overrides:
setCamelContextin classOptionalIdentifiedDefinition<RouteTemplatesDefinition>
-
getErrorHandlerFactory
public org.apache.camel.ErrorHandlerFactory getErrorHandlerFactory() -
setErrorHandlerFactory
public void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) -
getResource
public org.apache.camel.spi.Resource getResource()- Specified by:
getResourcein interfaceorg.apache.camel.spi.ResourceAware
-
setResource
public void setResource(org.apache.camel.spi.Resource resource) - Specified by:
setResourcein interfaceorg.apache.camel.spi.ResourceAware
-
routeTemplate
Creates a route template- Parameters:
id- the id of the route template
-
routeTemplate
Adds theRouteTemplatesDefinition -
createRouteTemplate
-