|
||||||||||
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.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()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
EventEndpoint |
getEventEndpoint()
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setEventEndpoint(EventEndpoint eventEndpoint)
|
static SpringCamelContext |
springCamelContext(org.springframework.context.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, isUseBreadcrumb, 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, setUseBreadcrumb, setUseMDCLogging, setUuidGenerator, shouldStartRoutes, shutdownRoute, shutdownRoute, shutdownRouteService, start, startRoute, startRoute, startRouteDefinitions, startRouteService, stopRoute, stopRoute, stopRoute, stopRoute, stopRouteService, 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(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.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
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 EventEndpoint getEventEndpoint()
public void setEventEndpoint(EventEndpoint eventEndpoint)
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultCamelContext
Exception
protected org.apache.camel.spi.Injector createInjector()
createInjector
in class org.apache.camel.impl.DefaultCamelContext
protected EventEndpoint createEventEndpoint()
protected org.apache.camel.Endpoint convertBeanToEndpoint(String uri, Object bean)
convertBeanToEndpoint
in class org.apache.camel.impl.DefaultCamelContext
protected org.apache.camel.spi.Registry createRegistry()
createRegistry
in class org.apache.camel.impl.DefaultCamelContext
public 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 |