Class XmlRoutesBuilderLoader

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.xml.io.XmlRoutesBuilderLoader
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.RoutesBuilderLoader, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService
Direct Known Subclasses:
CamelXmlRoutesBuilderLoader

@ManagedResource(description="Managed XML RoutesBuilderLoader") @RoutesLoader("xml") public class XmlRoutesBuilderLoader extends org.apache.camel.dsl.support.RouteBuilderLoaderSupport
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final org.slf4j.Logger
     

    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 void
    bindBean(org.apache.camel.model.app.RegistryBeanDefinition def, String name, Object target)
     
    protected void
    destroyBean(String name, boolean remove)
     
    org.apache.camel.builder.RouteBuilder
    doLoadRouteBuilder(org.apache.camel.spi.Resource input)
     
    protected void
     
    newInstance(org.apache.camel.model.app.RegistryBeanDefinition def, org.apache.camel.CamelContext context)
     
    void
    preParseRoute(org.apache.camel.spi.Resource resource)
     

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

    addCompilePostProcessor, doBuild, doStart, getCompilePostProcessors, 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, doShutdown, 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 class java.lang.Object

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

    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

    • XmlRoutesBuilderLoader

      public XmlRoutesBuilderLoader()
  • Method Details

    • preParseRoute

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

      public org.apache.camel.builder.RouteBuilder doLoadRouteBuilder(org.apache.camel.spi.Resource input) throws Exception
      Specified by:
      doLoadRouteBuilder in class org.apache.camel.dsl.support.RouteBuilderLoaderSupport
      Throws:
      Exception
    • newInstance

      public Object newInstance(org.apache.camel.model.app.RegistryBeanDefinition def, org.apache.camel.CamelContext context) throws Exception
      Throws:
      Exception
    • bindBean

      protected void bindBean(org.apache.camel.model.app.RegistryBeanDefinition def, String name, Object target) throws Exception
      Throws:
      Exception
    • destroyBean

      protected void destroyBean(String name, boolean remove)
    • doStop

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