public class CamelSpringBootApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
1. collecting routes and rests from the various sources (like Spring application context beans registry or opinionated classpath locations) and injects these into the Camel context. 2. setting up Camel main controller if enabled. 3. setting up run duration if in use.
| Constructor and Description |
|---|
CamelSpringBootApplicationListener(org.springframework.context.ApplicationContext applicationContext,
List<CamelContextConfiguration> camelContextConfigurations,
CamelConfigurationProperties configurationProperties,
org.apache.camel.main.RoutesCollector springBootRoutesCollector) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
public CamelSpringBootApplicationListener(org.springframework.context.ApplicationContext applicationContext,
List<CamelContextConfiguration> camelContextConfigurations,
CamelConfigurationProperties configurationProperties,
org.apache.camel.main.RoutesCollector springBootRoutesCollector)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public int getOrder()
getOrder in interface org.springframework.core.OrderedApache Camel