Package org.apache.camel.blueprint
Class PackageScanRouteBuilderFinder
java.lang.Object
org.apache.camel.blueprint.PackageScanRouteBuilderFinder
A helper class which will find all
RouteBuilder instances on the classpath-
Constructor Summary
ConstructorsConstructorDescriptionPackageScanRouteBuilderFinder(BlueprintCamelContext camelContext, String[] packages, ClassLoader classLoader, org.apache.camel.spi.PackageScanClassResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendBuilders(List<org.apache.camel.RoutesBuilder> list) Appends all theRouteBuilderinstances that can be found on the classpathprotected org.apache.camel.RoutesBuilderinstantiateBuilder(Class<?> type) protected booleanisValidClass(Class<?> type) Returns trueif the class is a public, non-abstract classprotected booleanshouldIgnoreBean(Class<?> type) Allows for ignoring beans that are explicitly configured in the Spring XML files
-
Constructor Details
-
PackageScanRouteBuilderFinder
public PackageScanRouteBuilderFinder(BlueprintCamelContext camelContext, String[] packages, ClassLoader classLoader, org.apache.camel.spi.PackageScanClassResolver resolver)
-
-
Method Details
-
appendBuilders
public void appendBuilders(List<org.apache.camel.RoutesBuilder> list) throws IllegalAccessException, InstantiationException Appends all theRouteBuilderinstances that can be found on the classpath -
shouldIgnoreBean
Allows for ignoring beans that are explicitly configured in the Spring XML files -
isValidClass
Returns trueif the class is a public, non-abstract class -
instantiateBuilder
protected org.apache.camel.RoutesBuilder instantiateBuilder(Class<?> type) throws IllegalAccessException, InstantiationException
-