org.apache.camel.spring
Class RouteBuilderFinder

java.lang.Object
  extended by org.apache.camel.spring.RouteBuilderFinder

public class RouteBuilderFinder
extends Object

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

Version:
$Revision: 734076 $

Constructor Summary
RouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader, BeanPostProcessor postProcessor, ResolverUtil resolverUtil)
           
 
Method Summary
 void appendBuilders(List<Routes> list)
          Appends all the RouteBuilder instances that can be found on the classpath
 void destroy()
           
 ApplicationContext getApplicationContext()
           
 String[] getPackages()
           
protected  Routes instantiateBuilder(Class type)
           
protected  boolean isValidClass(Class type)
          Returns true if the object is non-abstract and supports a zero argument constructor
protected  boolean shouldIgnoreBean(Class type)
          Lets ignore beans that are not explicitly configured in the spring.xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteBuilderFinder

public RouteBuilderFinder(SpringCamelContext camelContext,
                          String[] packages,
                          ClassLoader classLoader,
                          BeanPostProcessor postProcessor,
                          ResolverUtil resolverUtil)
Method Detail

getPackages

public String[] getPackages()

getApplicationContext

public ApplicationContext getApplicationContext()

appendBuilders

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

Throws:
IllegalAccessException
InstantiationException

destroy

public void destroy()
             throws Exception
Throws:
Exception

shouldIgnoreBean

protected boolean shouldIgnoreBean(Class type)
Lets ignore beans that are not explicitly configured in the spring.xml


isValidClass

protected boolean isValidClass(Class type)
Returns true if the object is non-abstract and supports a zero argument constructor


instantiateBuilder

protected Routes instantiateBuilder(Class type)
                             throws IllegalAccessException,
                                    InstantiationException
Throws:
IllegalAccessException
InstantiationException


Apache CAMEL