|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultCamelContext
org.apache.camel.spring.SpringCamelContext
public class SpringCamelContext
A Spring aware implementation of CamelContext which will automatically register itself with Springs lifecycle
methods plus allows spring to be used to customize a any
Type Converters as well as supporting accessing components
and beans via the Spring ApplicationContext
| Constructor Summary | |
|---|---|
SpringCamelContext()
|
|
SpringCamelContext(org.springframework.context.ApplicationContext applicationContext)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected org.apache.camel.spi.ComponentResolver |
createComponentResolver()
|
protected org.apache.camel.spi.Injector |
createInjector()
|
void |
destroy()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
static SpringCamelContext |
springCamelContext(org.springframework.context.ApplicationContext applicationContext)
|
static SpringCamelContext |
springCamelContext(String configLocations)
|
| Methods inherited from class org.apache.camel.impl.DefaultCamelContext |
|---|
addComponent, addRoutes, addRoutes, addSingletonEndpoint, createExchangeConverter, createTypeConverter, doStart, doStop, getComponent, getComponent, getComponentResolver, getEndpoint, getEndpoint, getExchangeConverter, getInjector, getOrCreateComponent, getRoutes, getSingletonEndpoints, getTypeConverter, isAutoCreateComponents, removeComponent, removeSingletonEndpoint, setAutoCreateComponents, setComponentResolver, setExchangeConverter, setInjector, setRoutes, setTypeConverter, startRoutes |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
isStarted, isStopped, isStopping, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Constructor Detail |
|---|
public SpringCamelContext()
public SpringCamelContext(org.springframework.context.ApplicationContext applicationContext)
| Method Detail |
|---|
public static SpringCamelContext springCamelContext(org.springframework.context.ApplicationContext applicationContext)
throws Exception
Exception
public static SpringCamelContext springCamelContext(String configLocations)
throws Exception
Exception
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected org.apache.camel.spi.Injector createInjector()
createInjector in class org.apache.camel.impl.DefaultCamelContextprotected org.apache.camel.spi.ComponentResolver createComponentResolver()
createComponentResolver in class org.apache.camel.impl.DefaultCamelContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||