Package org.apache.camel.spi
Interface RoutesBuilderLoader
-
- All Superinterfaces:
AutoCloseable,CamelContextAware,Service,StaticService
public interface RoutesBuilderLoader extends StaticService, CamelContextAware
SPI for loadingRoutesBuilderfrom aResource.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFACTORY_GROUPService factory group.static StringFACTORY_PATHService factory base path for language specific loaders.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetSupportedExtension()The supported file extension.RoutesBuilderloadRoutesBuilder(Resource resource)LoadsRoutesBuilderfromResource.-
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
-
FACTORY_GROUP
static final String FACTORY_GROUP
Service factory group.- 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
-
-