|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.spring.RouteBuilderFinder
public class RouteBuilderFinder
A helper class which will find all RouteBuilder
instances on the classpath
Constructor Summary | |
---|---|
RouteBuilderFinder(org.springframework.context.ApplicationContext applicationContext,
String[] packages)
|
|
RouteBuilderFinder(CamelContextFactoryBean factoryBean)
|
Method Summary | |
---|---|
void |
appendBuilders(List<org.apache.camel.builder.RouteBuilder> list)
Appends all the RouteBuilder instances that can be found on the classpath |
void |
destroy()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
String[] |
getPackages()
|
protected org.apache.camel.builder.RouteBuilder |
instantiateBuilder(Class type)
|
protected boolean |
isValidClass(Class type)
Returns true if the object is non-abstract and supports a zero argument constructor |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setPackages(String[] packages)
|
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 |
---|
public RouteBuilderFinder(org.springframework.context.ApplicationContext applicationContext, String[] packages)
public RouteBuilderFinder(CamelContextFactoryBean factoryBean)
Method Detail |
---|
public String[] getPackages()
public void setPackages(String[] packages)
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void appendBuilders(List<org.apache.camel.builder.RouteBuilder> list) throws IllegalAccessException, InstantiationException
RouteBuilder
instances that can be found on the classpath
IllegalAccessException
InstantiationException
public void destroy() throws Exception
Exception
protected boolean shouldIgnoreBean(Class type)
protected boolean isValidClass(Class type)
protected org.apache.camel.builder.RouteBuilder instantiateBuilder(Class type) throws IllegalAccessException, InstantiationException
IllegalAccessException
InstantiationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |