Package org.apache.camel.spi
Interface RoutesBuilderLoader
-
- All Superinterfaces:
AutoCloseable,CamelContextAware,Service,StaticService
- All Known Subinterfaces:
ExtendedRoutesBuilderLoader
public interface RoutesBuilderLoader extends StaticService, CamelContextAware
SPI for loadingRoutesBuilderfrom aResource.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFACTORY_PATHService factory base path for language specific loaders.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetSupportedExtension()The supported file extension.RoutesBuilderloadRoutesBuilder(Resource resource)LoadsRoutesBuilderfromResource.default voidpreParseRoute(Resource resource)Pre-parses theRoutesBuilderfromResource.-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
-
-
-
Field Detail
-
FACTORY_PATH
static final String FACTORY_PATH
Service factory base path for language specific loaders.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSupportedExtension
String getSupportedExtension()
The supported file extension. Implementations should support a single extension only.
-
loadRoutesBuilder
RoutesBuilder loadRoutesBuilder(Resource resource) throws Exception
LoadsRoutesBuilderfromResource.- Parameters:
resource- the resource to be loaded.- Returns:
- a
RoutesBuilder - Throws:
Exception
-
preParseRoute
default void preParseRoute(Resource resource) throws Exception
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
-
-