Package org.apache.camel.spi
Interface ExtendedRoutesBuilderLoader
- All Superinterfaces:
AutoCloseable
,CamelContextAware
,HasCamelContext
,RoutesBuilderLoader
,Service
,StaticService
An extended
RoutesBuilderLoader
that is capable of loading from multiple resources in one unit (such as
compiling them together).-
Field Summary
Fields inherited from interface org.apache.camel.spi.RoutesBuilderLoader
FACTORY_PATH
-
Method Summary
Modifier and TypeMethodDescriptionloadRoutesBuilders
(Collection<Resource> resources) LoadsRoutesBuilder
from multipleResource
s.default void
preParseRoutes
(Collection<Resource> resources) Pre-parses theRoutesBuilder
from multipleResource
s.Methods inherited from interface org.apache.camel.CamelContextAware
setCamelContext
Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
Methods inherited from interface org.apache.camel.spi.RoutesBuilderLoader
getSupportedExtension, isSupportedExtension, loadRoutesBuilder, preParseRoute
-
Method Details
-
preParseRoutes
Pre-parses theRoutesBuilder
from multipleResource
s. 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:
resources
- the resources to be pre parsed.- Throws:
Exception
-
loadRoutesBuilders
LoadsRoutesBuilder
from multipleResource
s.- Parameters:
resources
- the resources to be loaded.- Returns:
- a set of loaded
RoutesBuilder
s - Throws:
Exception
-