Class YamlRoutesBuilderLoaderSupport

  • All Implemented Interfaces:
    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
    Direct Known Subclasses:
    KameletRoutesBuilderLoader, YamlRoutesBuilderLoader

    public abstract class YamlRoutesBuilderLoaderSupport
    extends org.apache.camel.dsl.support.RouteBuilderLoaderSupport
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DESERIALIZATION_MODE  
      • 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 boolean anyTupleMatches​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list, String aKey, String aValue)  
      protected boolean anyTupleMatches​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list, String aKey, Predicate<String> predicate)  
      protected abstract org.apache.camel.builder.RouteBuilder builder​(org.apache.camel.dsl.yaml.common.YamlDeserializationContext ctx, org.snakeyaml.engine.v2.nodes.Node node)  
      org.apache.camel.builder.RouteBuilder doLoadRouteBuilder​(org.apache.camel.spi.Resource resource)  
      protected String extractTupleValue​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list, String aKey)  
      protected org.apache.camel.dsl.yaml.common.YamlDeserializationContext newYamlDeserializationContext​(org.snakeyaml.engine.v2.api.LoadSettings settings, org.apache.camel.spi.Resource resource)  
      • Methods inherited from class org.apache.camel.dsl.support.RouteBuilderLoaderSupport

        addCompilePostProcessor, doBuild, doStart, getCompilePostProcessors, getSupportedExtension, 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, 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.spi.RoutesBuilderLoader

        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

      • YamlRoutesBuilderLoaderSupport

        public YamlRoutesBuilderLoaderSupport​(String extension)
    • Method Detail

      • newYamlDeserializationContext

        protected org.apache.camel.dsl.yaml.common.YamlDeserializationContext newYamlDeserializationContext​(org.snakeyaml.engine.v2.api.LoadSettings settings,
                                                                                                            org.apache.camel.spi.Resource resource)
      • doLoadRouteBuilder

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

        protected abstract org.apache.camel.builder.RouteBuilder builder​(org.apache.camel.dsl.yaml.common.YamlDeserializationContext ctx,
                                                                         org.snakeyaml.engine.v2.nodes.Node node)
      • anyTupleMatches

        protected boolean anyTupleMatches​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list,
                                          String aKey,
                                          String aValue)
      • anyTupleMatches

        protected boolean anyTupleMatches​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list,
                                          String aKey,
                                          Predicate<String> predicate)
      • extractTupleValue

        protected String extractTupleValue​(List<org.snakeyaml.engine.v2.nodes.NodeTuple> list,
                                           String aKey)