Class RoutesCollector
- java.lang.Object
-
- org.apache.camel.spring.javaconfig.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 Summary
Constructors Constructor Description RoutesCollector(org.springframework.context.ApplicationContext applicationContext, CamelConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
-
-
-
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:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-