Class PackageScanRouteBuilderFinder

java.lang.Object
org.apache.camel.spring.xml.PackageScanRouteBuilderFinder

A helper class which will find all RouteBuilder instances on the classpath
  • Constructor Details

    • PackageScanRouteBuilderFinder

      public PackageScanRouteBuilderFinder(org.apache.camel.spring.SpringCamelContext camelContext, String[] packages, ClassLoader classLoader, org.springframework.beans.factory.config.BeanPostProcessor postProcessor, org.apache.camel.spi.PackageScanClassResolver resolver)
  • Method Details

    • appendBuilders

      public void appendBuilders(List<org.apache.camel.RoutesBuilder> list)
      Appends all the RouteBuilder instances 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)