Class ExtendedRouteBuilderLoaderSupport

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ExtendedRoutesBuilderLoader, org.apache.camel.spi.RoutesBuilderLoader, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

    public abstract class ExtendedRouteBuilderLoaderSupport
    extends RouteBuilderLoaderSupport
    implements org.apache.camel.spi.ExtendedRoutesBuilderLoader
    Base class for RoutesBuilderLoader implementations.
    • Field Summary

      • Fields inherited from class org.apache.camel.support.service.BaseService

        BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
      • Fields inherited from interface org.apache.camel.spi.RoutesBuilderLoader

        FACTORY_PATH
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.camel.builder.RouteBuilder doLoadRouteBuilder​(org.apache.camel.spi.Resource resource)
      Loads RoutesBuilder from Resource from the DSL implementation.
      protected abstract Collection<org.apache.camel.RoutesBuilder> doLoadRoutesBuilders​(Collection<org.apache.camel.spi.Resource> resources)  
      Collection<org.apache.camel.RoutesBuilder> loadRoutesBuilders​(Collection<org.apache.camel.spi.Resource> resources)  
      • Methods inherited from class org.apache.camel.support.RoutesBuilderLoaderSupport

        getCamelContext, setCamelContext
      • Methods inherited from class org.apache.camel.support.service.BaseService

        build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
      • Methods inherited from interface org.apache.camel.CamelContextAware

        getCamelContext, setCamelContext
      • Methods inherited from interface org.apache.camel.spi.RoutesBuilderLoader

        getSupportedExtension, loadRoutesBuilder, preParseRoute
      • Methods inherited from interface org.apache.camel.Service

        build, close, init, start, stop
      • Methods inherited from interface org.apache.camel.ShutdownableService

        shutdown
      • Methods inherited from interface org.apache.camel.StatefulService

        getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
      • Methods inherited from interface org.apache.camel.SuspendableService

        isSuspended, resume, suspend
    • Constructor Detail

      • ExtendedRouteBuilderLoaderSupport

        protected ExtendedRouteBuilderLoaderSupport​(String extension)
    • Method Detail

      • doLoadRouteBuilder

        protected org.apache.camel.builder.RouteBuilder doLoadRouteBuilder​(org.apache.camel.spi.Resource resource)
                                                                    throws Exception
        Description copied from class: RouteBuilderLoaderSupport
        Loads RoutesBuilder from Resource from the DSL implementation.
        Specified by:
        doLoadRouteBuilder in class RouteBuilderLoaderSupport
        Parameters:
        resource - the resource to be loaded.
        Returns:
        a RoutesBuilder
        Throws:
        Exception
      • loadRoutesBuilders

        public Collection<org.apache.camel.RoutesBuilder> loadRoutesBuilders​(Collection<org.apache.camel.spi.Resource> resources)
                                                                      throws Exception
        Specified by:
        loadRoutesBuilders in interface org.apache.camel.spi.ExtendedRoutesBuilderLoader
        Throws:
        Exception
      • doLoadRoutesBuilders

        protected abstract Collection<org.apache.camel.RoutesBuilder> doLoadRoutesBuilders​(Collection<org.apache.camel.spi.Resource> resources)
                                                                                    throws Exception
        Throws:
        Exception