Package org.apache.camel.spring
Class PackageScanRouteBuilderFinder
- java.lang.Object
-
- org.apache.camel.spring.PackageScanRouteBuilderFinder
-
public class PackageScanRouteBuilderFinder extends Object
A helper class which will find allRouteBuilderinstances on the classpath
-
-
Constructor Summary
Constructors Constructor Description PackageScanRouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader, BeanPostProcessor postProcessor, org.apache.camel.spi.PackageScanClassResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendBuilders(List<org.apache.camel.RoutesBuilder> list)Appends all theRouteBuilderinstances that can be found on the classpathprotected org.apache.camel.RoutesBuilderinstantiateBuilder(Class<? extends org.apache.camel.RoutesBuilder> type)protected booleanisValidClass(Class<?> type)Returns trueif the class is a public, non-abstract classprotected booleanshouldIgnoreBean(Class<?> type)Lets ignore beans that are explicitly configured in the Spring XML files
-
-
-
Constructor Detail
-
PackageScanRouteBuilderFinder
public PackageScanRouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader, BeanPostProcessor postProcessor, org.apache.camel.spi.PackageScanClassResolver resolver)
-
-
Method Detail
-
appendBuilders
public void appendBuilders(List<org.apache.camel.RoutesBuilder> list) throws IllegalAccessException, InstantiationException
Appends all theRouteBuilderinstances that can be found on the classpath
-
shouldIgnoreBean
protected boolean shouldIgnoreBean(Class<?> type)
Lets ignore beans that are explicitly configured in the Spring XML files
-
isValidClass
protected boolean isValidClass(Class<?> type)
Returns trueif the class is a public, non-abstract class
-
instantiateBuilder
protected org.apache.camel.RoutesBuilder instantiateBuilder(Class<? extends org.apache.camel.RoutesBuilder> type) throws IllegalAccessException, InstantiationException
-
-