Class PackageScanRouteBuilderFinder

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

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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    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
    Returns trueif the class is a public, non-abstract class
    protected boolean
    Lets ignore beans that are explicitly configured in the Spring XML files

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)