Class JavaRoutesBuilderLoader

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.RoutesBuilderLoaderSupport
org.apache.camel.dsl.support.RouteBuilderLoaderSupport
org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport
org.apache.camel.dsl.java.joor.JavaRoutesBuilderLoader
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.HasCamelContext, org.apache.camel.spi.RoutesBuilderLoader, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

@ManagedResource(description="Managed JavaRoutesBuilderLoader") @RoutesLoader("java") public class JavaRoutesBuilderLoader extends org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.camel.language.joor.CompilationUnit.Result
    compileResources(Collection<org.apache.camel.spi.Resource> resources)
     
    protected void
     
    protected org.apache.camel.builder.RouteBuilder
    doLoadRouteBuilder(org.apache.camel.spi.Resource resource)
     
    protected Collection<org.apache.camel.RoutesBuilder>
    doLoadRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources)
     
    protected void
     
    void
    preParseRoute(org.apache.camel.spi.Resource resource)
     
    void
    preParseRoutes(Collection<org.apache.camel.spi.Resource> resources)
     
    protected ClassLoader
    Resolves the parent ClassLoader to use for compilation.

    Methods inherited from class org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport

    loadRoutesBuilders

    Methods inherited from class org.apache.camel.dsl.support.RouteBuilderLoaderSupport

    addCompilePostProcessor, addCompilePreProcessor, doStart, getCompilePostProcessors, getCompilePreProcessors, getSupportedExtension, isSupportedExtension, loadRoutesBuilder, resourceInputStream

    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, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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

    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
  • Field Details

  • Constructor Details

    • JavaRoutesBuilderLoader

      public JavaRoutesBuilderLoader()
  • Method Details

    • doBuild

      protected void doBuild() throws Exception
      Overrides:
      doBuild in class org.apache.camel.dsl.support.RouteBuilderLoaderSupport
      Throws:
      Exception
    • preParseRoute

      public void preParseRoute(org.apache.camel.spi.Resource resource) throws Exception
      Throws:
      Exception
    • preParseRoutes

      public void preParseRoutes(Collection<org.apache.camel.spi.Resource> resources) throws Exception
      Throws:
      Exception
    • doLoadRouteBuilder

      protected org.apache.camel.builder.RouteBuilder doLoadRouteBuilder(org.apache.camel.spi.Resource resource) throws Exception
      Overrides:
      doLoadRouteBuilder in class org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport
      Throws:
      Exception
    • doLoadRoutesBuilders

      protected Collection<org.apache.camel.RoutesBuilder> doLoadRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources) throws Exception
      Specified by:
      doLoadRoutesBuilders in class org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport
      Throws:
      Exception
    • compileResources

      protected org.apache.camel.language.joor.CompilationUnit.Result compileResources(Collection<org.apache.camel.spi.Resource> resources) throws Exception
      Throws:
      Exception
    • resolveParentClassLoader

      protected ClassLoader resolveParentClassLoader()
      Resolves the parent ClassLoader to use for compilation.
    • doShutdown

      protected void doShutdown() throws Exception
      Overrides:
      doShutdown in class org.apache.camel.support.service.BaseService
      Throws:
      Exception