Package org.apache.camel.spi
Interface RoutesBuilderLoader
- All Superinterfaces:
AutoCloseable,CamelContextAware,HasCamelContext,Service,StaticService
- All Known Subinterfaces:
ExtendedRoutesBuilderLoader
SPI for loading
RoutesBuilder from a Resource.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringService factory base path for language specific loaders. -
Method Summary
Modifier and TypeMethodDescriptionThe supported file extension.default booleanisSupportedExtension(String extension) Whether the file extension is supportedloadRoutesBuilder(Resource resource) LoadsRoutesBuilderfromResource.default voidpreParseRoute(Resource resource) Pre-parses theRoutesBuilderfromResource.Methods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
-
Field Details
-
FACTORY_PATH
Service factory base path for language specific loaders.- See Also:
-
-
Method Details
-
getSupportedExtension
String getSupportedExtension()The supported file extension. Implementations should support a single extension only. -
isSupportedExtension
Whether the file extension is supported -
loadRoutesBuilder
LoadsRoutesBuilderfromResource.- Parameters:
resource- the resource to be loaded.- Returns:
- a
RoutesBuilder - Throws:
Exception
-
preParseRoute
Pre-parses theRoutesBuilderfromResource. This is used during bootstrap, to eager detect configurations from route DSL resources which makes it possible to specify configurations that affect the bootstrap, such as by camel-jbang and camel-yaml-dsl.- Parameters:
resource- the resource to be pre parsed.- Throws:
Exception
-