org.apache.camel.blueprint
Class PackageScanRouteBuilderFinder

java.lang.Object
  extended by org.apache.camel.blueprint.PackageScanRouteBuilderFinder

public class PackageScanRouteBuilderFinder
extends Object

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

Version:

Constructor Summary
PackageScanRouteBuilderFinder(BlueprintCamelContext camelContext, String[] packages, ClassLoader classLoader, org.apache.camel.spi.PackageScanClassResolver resolver)
           
 
Method Summary
 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 type)
           
protected  boolean isValidClass(Class type)
          Returns trueif the class is a public, non-abstract class
protected  boolean shouldIgnoreBean(Class<?> type)
          Allows for ignoring 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 Detail

PackageScanRouteBuilderFinder

public PackageScanRouteBuilderFinder(BlueprintCamelContext camelContext,
                                     String[] packages,
                                     ClassLoader classLoader,
                                     org.apache.camel.spi.PackageScanClassResolver resolver)
Method Detail

appendBuilders

public void appendBuilders(List<org.apache.camel.RoutesBuilder> list)
                    throws IllegalAccessException,
                           InstantiationException
Appends all the RouteBuilder instances that can be found on the classpath

Throws:
IllegalAccessException
InstantiationException

shouldIgnoreBean

protected boolean shouldIgnoreBean(Class<?> type)
Allows for ignoring 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 type)
                                                     throws IllegalAccessException,
                                                            InstantiationException
Throws:
IllegalAccessException
InstantiationException


Apache CAMEL