|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.spring.javaconfig.CamelConfiguration
@Configuration public abstract class CamelConfiguration
A useful base class for writing Spring JavaConfig configurations for working with Camel
| Constructor Summary | |
|---|---|
CamelConfiguration()
|
|
| Method Summary | ||
|---|---|---|
CamelBeanPostProcessor |
camelBeanPostProcessor()
|
|
CamelContext |
camelContext()
Returns the CamelContext |
|
protected CamelContext |
createCamelContext()
|
|
protected ApplicationContext |
getApplicationContext()
|
|
|
getBean(Class<T> type)
|
|
Object |
getBean(String beanName)
|
|
|
getBean(String beanName,
Class<T> type)
|
|
protected BeanFactory |
getBeanFactory()
|
|
protected
|
getConfigured(T object)
Invoke callbacks on the object, as though it were configured in the factory. |
|
abstract List<RouteBuilder> |
routes()
Returns the list of routes to use in this configuration |
|
void |
setApplicationContext(ApplicationContext ac)
|
|
void |
setBeanFactory(BeanFactory beanFactory)
|
|
protected void |
setupCamelContext(CamelContext camelContext)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamelConfiguration()
| Method Detail |
|---|
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwareprotected BeanFactory getBeanFactory()
public void setApplicationContext(ApplicationContext ac)
setApplicationContext in interface ApplicationContextAwareprotected ApplicationContext getApplicationContext()
public Object getBean(String beanName)
public <T> T getBean(Class<T> type)
public <T> T getBean(String beanName,
Class<T> type)
protected <T> T getConfigured(T object)
object - object to configure
@Bean
public CamelBeanPostProcessor camelBeanPostProcessor()
throws Exception
Exception
@Bean
public CamelContext camelContext()
throws Exception
Exception
protected void setupCamelContext(CamelContext camelContext)
throws Exception
Exception
protected CamelContext createCamelContext()
throws Exception
Exceptionpublic abstract List<RouteBuilder> routes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||