public class ActiveRoutesCollector
extends org.apache.camel.spring.boot.RoutesCollector
RoutesCollector
for tests that adds only active routes into camel context.
If there is defined property '"test.camel.initAllRoutes"' with true value
then all routes from Spring application context are added into Camel context otherwise only active routes
are added - those listed in annotation ActiveRoutes
.
Note: if I have to extends RoutesCollector because I need to mis-match condition in CamelAutoConfiguration
.
Modifier and Type | Field and Description |
---|---|
static String |
TEST_CAMEL_INIT_ALL_ROUTES |
Constructor and Description |
---|
ActiveRoutesCollector(org.springframework.context.ApplicationContext applicationContext,
List<org.apache.camel.spring.boot.CamelContextConfiguration> camelContextConfigurations,
org.apache.camel.spring.boot.CamelConfigurationProperties configurationProperties) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
public static final String TEST_CAMEL_INIT_ALL_ROUTES
public ActiveRoutesCollector(org.springframework.context.ApplicationContext applicationContext, List<org.apache.camel.spring.boot.CamelContextConfiguration> camelContextConfigurations, org.apache.camel.spring.boot.CamelConfigurationProperties configurationProperties)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
onApplicationEvent
in class org.apache.camel.spring.boot.RoutesCollector
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.