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="routeTemplates")
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 RouteTemplateDefinition
org.apache.camel.CamelContext
org.apache.camel.ErrorHandlerFactory
getLabel()
org.apache.camel.spi.Resource
Returns the route templatesrouteTemplate
(String id) Creates a route templaterouteTemplate
(RouteTemplateDefinition template) Adds theRouteTemplatesDefinition
void
setCamelContext
(org.apache.camel.CamelContext camelContext) void
setErrorHandlerFactory
(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) void
setResource
(org.apache.camel.spi.Resource resource) void
setRouteTemplates
(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, 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
-
RouteTemplatesDefinition
public RouteTemplatesDefinition()
-
-
Method Details
-
toString
-
getShortName
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
-
getRouteTemplates
Description copied from interface:RouteTemplateContainer
Returns the route templates- Specified by:
getRouteTemplates
in interfaceRouteTemplateContainer
- Returns:
- the route templates
-
setRouteTemplates
The route templates- Specified by:
setRouteTemplates
in interfaceRouteTemplateContainer
- Parameters:
routeTemplates
- the route templates
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
- Overrides:
getCamelContext
in classOptionalIdentifiedDefinition<RouteTemplatesDefinition>
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
- Overrides:
setCamelContext
in 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:
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
-
routeTemplate
Creates a route template- Parameters:
id
- the id of the route template
-
routeTemplate
Adds theRouteTemplatesDefinition
-
createRouteTemplate
-