Class RoutesCollector

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered

    public class RoutesCollector
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
    Collects routes and rests from the various sources (like Spring application context beans registry or opinionated classpath locations) and injects these into the Camel context.
    • Constructor Detail

      • RoutesCollector

        public RoutesCollector​(org.springframework.context.ApplicationContext applicationContext,
                               CamelConfiguration configuration)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered