| 
 | ||||||||||
| 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(ApplicationContext applicationContext) | |
| Method Summary | |
|---|---|
|  void | afterPropertiesSet() | 
| protected  org.apache.camel.Endpoint | convertBeanToEndpoint(String uri,
                                           Object bean) | 
| protected  EventEndpoint | createEventEndpoint() | 
| protected  org.apache.camel.spi.Injector | createInjector() | 
| protected  org.apache.camel.spi.Registry | createRegistry() | 
|  void | destroy() | 
| protected  void | doStart() | 
|  ApplicationContext | getApplicationContext() | 
|  EventEndpoint | getEventEndpoint() | 
|  void | onApplicationEvent(ApplicationEvent event) | 
|  void | setApplicationContext(ApplicationContext applicationContext) | 
|  void | setEventEndpoint(EventEndpoint eventEndpoint) | 
| static SpringCamelContext | springCamelContext(ApplicationContext applicationContext) | 
| static SpringCamelContext | springCamelContext(String configLocations) | 
|  String | toString() | 
| Methods inherited from class org.apache.camel.impl.DefaultCamelContext | 
|---|
| addComponent, addEndpoint, addEndpointToRegistry, addInterceptStrategy, addLifecycleStrategy, addRegisterEndpointCallback, addRouteDefinition, addRouteDefinitions, addRoutes, addService, addStartupListener, createComponentResolver, createConsumerTemplate, createConsumerTemplate, createEndpoint, createManagementStrategy, createProducerTemplate, createProducerTemplate, createTypeConverter, disableJMX, doResume, doStartOrResumeRoutes, doStop, doSuspend, forceLazyInitialization, forceStopLazyInitialization, getApplicationContextClassLoader, getClassResolver, getComponent, getComponent, getComponentNames, getComponentResolver, getDataFormatResolver, getDataFormats, getDebugger, getDefaultFactoryFinder, getDefaultTracer, getDelayer, getEndpoint, getEndpoint, getEndpointKey, getEndpointKey, getEndpointMap, getEndpoints, getErrorHandlerBuilder, getExecutorServiceStrategy, getFactoryFinder, getInflightRepository, getInjector, getInterceptStrategies, getLanguageNames, getLanguageResolver, getLifecycleStrategies, getManagementName, getManagementStrategy, getName, getNameStrategy, getNodeIdFactory, getPackageScanClassResolver, getProcessorFactory, getProducerServicePool, getProperties, getRegistry, getRoute, getRouteDefinition, getRouteDefinitions, getRoutes, getRouteServices, getRouteStartupOrder, getRouteStatus, getShutdownRoute, getShutdownRunningTask, getShutdownStrategy, getTypeConverter, getTypeConverterRegistry, getUptime, getUuidGenerator, hasComponent, hasEndpoint, hasService, isAutoCreateComponents, isAutoStartup, isHandleFault, isLazyLoadTypeConverters, isStartingRoutes, isStreamCaching, isTracing, isUseMDCLogging, loadRoutesDefinition, normalizeEndpointUri, removeComponent, removeEndpoints, removeRoute, removeRouteDefinition, removeRouteDefinition, removeRouteDefinitions, resolveDataFormat, resolveDataFormatDefinition, resolveLanguage, resolvePropertyPlaceholders, resumeRoute, resumeRouteService, routeSupportsSuspension, safelyStartRouteServices, safelyStartRouteServices, setApplicationContextClassLoader, setAutoCreateComponents, setAutoStartup, setClassResolver, setComponentResolver, setContextCounter, setDataFormatResolver, setDataFormats, setDebugger, setDefaultTracer, setDelayer, setErrorHandlerBuilder, setExecutorServiceStrategy, setFactoryFinderResolver, setHandleFault, setInflightRepository, setInjector, setInterceptStrategies, setJndiContext, setLanguageResolver, setLazyLoadTypeConverters, setLifecycleStrategies, setManagementName, setManagementStrategy, setName, setNameStrategy, setNodeIdFactory, setPackageScanClassResolver, setProcessorFactory, setProducerServicePool, setProperties, setRegistry, setRoutes, setShutdownRoute, setShutdownRunningTask, setShutdownStrategy, setStreamCaching, setTracing, setTypeConverter, setTypeConverterRegistry, setUseMDCLogging, setUuidGenerator, shouldStartRoutes, shutdownRoute, shutdownRoute, shutdownRouteService, start, startRoute, startRoute, startRouteDefinitions, startRouteService, stopRoute, stopRoute, stopRoute, stopRoute, stopRouteService, suspendRoute, suspendRoute, suspendRouteService | 
| Methods inherited from class org.apache.camel.impl.ServiceSupport | 
|---|
| addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, stop, suspend | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.apache.camel.CamelContext | 
|---|
| getStatus, getVersion | 
| Methods inherited from interface org.apache.camel.SuspendableService | 
|---|
| isSuspended, resume, suspend | 
| Methods inherited from interface org.apache.camel.Service | 
|---|
| stop | 
| Constructor Detail | 
|---|
public SpringCamelContext()
public SpringCamelContext(ApplicationContext applicationContext)
| Method Detail | 
|---|
public static SpringCamelContext springCamelContext(ApplicationContext applicationContext)
                                             throws Exception
Exception
public static SpringCamelContext springCamelContext(String configLocations)
                                             throws Exception
Exception
public void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface InitializingBeanException
public void destroy()
             throws Exception
destroy in interface DisposableBeanExceptionpublic void onApplicationEvent(ApplicationEvent event)
public ApplicationContext getApplicationContext()
public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic EventEndpoint getEventEndpoint()
public void setEventEndpoint(EventEndpoint eventEndpoint)
protected void doStart()
                throws Exception
doStart in class org.apache.camel.impl.DefaultCamelContextExceptionprotected org.apache.camel.spi.Injector createInjector()
createInjector in class org.apache.camel.impl.DefaultCamelContextprotected EventEndpoint createEventEndpoint()
protected org.apache.camel.Endpoint convertBeanToEndpoint(String uri,
                                                          Object bean)
convertBeanToEndpoint in class org.apache.camel.impl.DefaultCamelContextprotected org.apache.camel.spi.Registry createRegistry()
createRegistry in class org.apache.camel.impl.DefaultCamelContextpublic String toString()
toString in class org.apache.camel.impl.DefaultCamelContext| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||