Class GroovySourceLoaderRecorder.Loader

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.RoutesBuilderLoader, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService
    Enclosing class:
    GroovySourceLoaderRecorder

    public static class GroovySourceLoaderRecorder.Loader
    extends org.apache.camel.dsl.groovy.GroovyRoutesBuilderLoader
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String EXTENSION  
      • 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_GROUP, FACTORY_PATH
    • Constructor Summary

      Constructors 
      Constructor Description
      Loader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doBuild()  
      String getSupportedExtension()  
      org.apache.camel.RoutesBuilder loadRoutesBuilder​(org.apache.camel.spi.Resource resource)  
      • Methods inherited from class org.apache.camel.dsl.groovy.GroovyRoutesBuilderLoader

        getMetaClass, setMetaClass
      • 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, doStart, 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 groovy.lang.GroovyObject

        getProperty, invokeMethod, setProperty
      • 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

      • Loader

        public Loader()
    • Method Detail

      • doBuild

        protected void doBuild()
                        throws Exception
        Overrides:
        doBuild in class org.apache.camel.dsl.groovy.GroovyRoutesBuilderLoader
        Throws:
        Exception
      • getSupportedExtension

        @ManagedAttribute(description="Supported file extension")
        public String getSupportedExtension()
        Specified by:
        getSupportedExtension in interface org.apache.camel.spi.RoutesBuilderLoader
        Overrides:
        getSupportedExtension in class org.apache.camel.dsl.groovy.GroovyRoutesBuilderLoader
      • loadRoutesBuilder

        public org.apache.camel.RoutesBuilder loadRoutesBuilder​(org.apache.camel.spi.Resource resource)
                                                         throws Exception
        Specified by:
        loadRoutesBuilder in interface org.apache.camel.spi.RoutesBuilderLoader
        Overrides:
        loadRoutesBuilder in class org.apache.camel.dsl.groovy.GroovyRoutesBuilderLoader
        Throws:
        Exception