public class PackageScanRouteBuilderFinder extends Object
RouteBuilder
instances on the classpathConstructor and Description |
---|
PackageScanRouteBuilderFinder(SpringCamelContext camelContext,
String[] packages,
ClassLoader classLoader,
org.springframework.beans.factory.config.BeanPostProcessor postProcessor,
org.apache.camel.spi.PackageScanClassResolver resolver) |
Modifier and Type | Method and Description |
---|---|
void |
appendBuilders(List<org.apache.camel.RoutesBuilder> list)
Appends all the
RouteBuilder instances that can be found on the classpath |
protected org.apache.camel.RoutesBuilder |
instantiateBuilder(Class<? extends org.apache.camel.RoutesBuilder> type) |
protected boolean |
isValidClass(Class<?> type)
Returns trueif the class is a public, non-abstract class
|
protected boolean |
shouldIgnoreBean(Class<?> type)
Lets ignore beans that are explicitly configured in the Spring XML files
|
public PackageScanRouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader, org.springframework.beans.factory.config.BeanPostProcessor postProcessor, org.apache.camel.spi.PackageScanClassResolver resolver)
public void appendBuilders(List<org.apache.camel.RoutesBuilder> list) throws IllegalAccessException, InstantiationException
RouteBuilder
instances that can be found on the classpathprotected boolean shouldIgnoreBean(Class<?> type)
protected boolean isValidClass(Class<?> type)
protected org.apache.camel.RoutesBuilder instantiateBuilder(Class<? extends org.apache.camel.RoutesBuilder> type) throws IllegalAccessException, InstantiationException
Apache Camel