Interface RoutesBuilderLoader

All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, StaticService
All Known Subinterfaces:
ExtendedRoutesBuilderLoader

public interface RoutesBuilderLoader extends StaticService, CamelContextAware
SPI for loading RoutesBuilder from a Resource.
  • Field Details

    • FACTORY_PATH

      static final String 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.

    • loadRoutesBuilder

      RoutesBuilder loadRoutesBuilder(Resource resource) throws Exception
      Parameters:
      resource - the resource to be loaded.
      Returns:
      a RoutesBuilder
      Throws:
      Exception
    • preParseRoute

      default void preParseRoute(Resource resource) throws Exception
      Pre-parses the RoutesBuilder from Resource. 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