public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<SpringCamelContext> implements org.springframework.beans.factory.FactoryBean<SpringCamelContext>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
FactoryBean
to create and initialize a
SpringCamelContext
and install routes either explicitly configured in
Spring XML or found by searching the classpath for Java classes which extend
RouteBuilder
using the nested setPackages(String[])
.LAZY_LOAD_TYPE_CONVERTERS
Constructor and Description |
---|
CamelContextFactoryBean() |
destroy, findRouteBuilders, getContext, getContextClassLoaderOnStart, getObject, initCamelContext, initJMXAgent, initLazyLoadTypeConverters, initRestRefs, initRouteRefs, initStreamCachingStrategy, initThreadPoolProfiles, installRoutes, isSingleton, setupRoutes
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Class<SpringCamelContext> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<SpringCamelContext>
getObjectType
in class AbstractCamelContextFactoryBean<SpringCamelContext>
protected <S> S getBeanForType(Class<S> clazz)
getBeanForType
in class AbstractCamelContextFactoryBean<SpringCamelContext>
protected void findRouteBuildersByPackageScan(String[] packages, PackageScanFilter filter, List<RoutesBuilder> builders) throws Exception
findRouteBuildersByPackageScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
Exception
protected void findRouteBuildersByContextScan(PackageScanFilter filter, boolean includeNonSingletons, List<RoutesBuilder> builders) throws Exception
findRouteBuildersByContextScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
Exception
protected void initBeanPostProcessor(SpringCamelContext context)
initBeanPostProcessor
in class AbstractCamelContextFactoryBean<SpringCamelContext>
protected void postProcessBeforeInit(RouteBuilder builder)
postProcessBeforeInit
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractCamelContextFactoryBean<SpringCamelContext>
Exception
protected void initCustomRegistry(SpringCamelContext context)
initCustomRegistry
in class AbstractCamelContextFactoryBean<SpringCamelContext>
protected void initPropertyPlaceholder() throws Exception
initPropertyPlaceholder
in class AbstractCamelContextFactoryBean<SpringCamelContext>
Exception
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public void setBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor postProcessor)
public org.springframework.beans.factory.config.BeanPostProcessor getBeanPostProcessor()
protected SpringCamelContext createContext()
protected SpringCamelContext newCamelContext()
public SpringCamelContext getContext(boolean create)
getContext
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setContext(SpringCamelContext context)
public List<RouteDefinition> getRoutes()
RouteContainer
getRoutes
in interface RouteContainer
getRoutes
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRoutes(List<RouteDefinition> routes)
RouteContainer
setRoutes
in interface RouteContainer
routes
- the routespublic List<RestDefinition> getRests()
RestContainer
getRests
in interface RestContainer
getRests
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRests(List<RestDefinition> rests)
RestContainer
setRests
in interface RestContainer
rests
- the RESTspublic RestConfigurationDefinition getRestConfiguration()
getRestConfiguration
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRestConfiguration(RestConfigurationDefinition restConfiguration)
public List<CamelEndpointFactoryBean> getEndpoints()
getEndpoints
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setEndpoints(List<CamelEndpointFactoryBean> endpoints)
public List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
getRedeliveryPolicies
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public List<InterceptDefinition> getIntercepts()
getIntercepts
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setIntercepts(List<InterceptDefinition> intercepts)
public List<InterceptFromDefinition> getInterceptFroms()
getInterceptFroms
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms)
public List<InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
getInterceptSendToEndpoints
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setInterceptSendToEndpoints(List<InterceptSendToEndpointDefinition> interceptSendToEndpoints)
public PropertiesDefinition getProperties()
getProperties
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setProperties(PropertiesDefinition properties)
public String[] getPackages()
getPackages
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setPackages(String[] packages)
RouteBuilder
to be auto-wired up to the
CamelContext
as a route. Note that classes are excluded if
they are specifically configured in the spring.xml
A more advanced configuration can be done using setPackageScan(org.apache.camel.model.PackageScanDefinition)
packages
- the package names which are recursively searchedsetPackageScan(org.apache.camel.model.PackageScanDefinition)
public PackageScanDefinition getPackageScan()
getPackageScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setPackageScan(PackageScanDefinition packageScan)
RouteBuilder
implementationssetPackageScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
packageScan
- the package scanpublic ContextScanDefinition getContextScan()
getContextScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setContextScan(ContextScanDefinition contextScan)
RouteBuilder
implementationssetContextScan
in class AbstractCamelContextFactoryBean<SpringCamelContext>
contextScan
- the context scanpublic CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
getCamelPropertyPlaceholder
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setCamelPropertyPlaceholder(CamelPropertyPlaceholderDefinition camelPropertyPlaceholder)
public CamelStreamCachingStrategyDefinition getCamelStreamCachingStrategy()
getCamelStreamCachingStrategy
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setCamelStreamCachingStrategy(CamelStreamCachingStrategyDefinition camelStreamCachingStrategy)
public void setCamelJMXAgent(CamelJMXAgentDefinition agent)
public String getTrace()
getTrace
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setTrace(String trace)
public String getMessageHistory()
getMessageHistory
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setMessageHistory(String messageHistory)
public String getStreamCache()
getStreamCache
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setStreamCache(String streamCache)
public String getDelayer()
getDelayer
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setDelayer(String delayer)
public String getHandleFault()
getHandleFault
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setHandleFault(String handleFault)
public String getAutoStartup()
getAutoStartup
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setAutoStartup(String autoStartup)
public String getShutdownEager()
public void setShutdownEager(String shutdownEager)
public String getUseMDCLogging()
getUseMDCLogging
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setUseMDCLogging(String useMDCLogging)
public String getUseBreadcrumb()
getUseBreadcrumb
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setUseBreadcrumb(String useBreadcrumb)
public String getAllowUseOriginalMessage()
getAllowUseOriginalMessage
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setAllowUseOriginalMessage(String allowUseOriginalMessage)
public String getRuntimeEndpointRegistryEnabled()
getRuntimeEndpointRegistryEnabled
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled)
public String getManagementNamePattern()
getManagementNamePattern
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setManagementNamePattern(String managementNamePattern)
public String getThreadNamePattern()
getThreadNamePattern
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setThreadNamePattern(String threadNamePattern)
@Deprecated public Boolean getLazyLoadTypeConverters()
getLazyLoadTypeConverters
in class AbstractCamelContextFactoryBean<SpringCamelContext>
@Deprecated public void setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
public Boolean getTypeConverterStatisticsEnabled()
getTypeConverterStatisticsEnabled
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
public TypeConverterExists getTypeConverterExists()
getTypeConverterExists
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setTypeConverterExists(TypeConverterExists typeConverterExists)
public LoggingLevel getTypeConverterExistsLoggingLevel()
getTypeConverterExistsLoggingLevel
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setTypeConverterExistsLoggingLevel(LoggingLevel typeConverterExistsLoggingLevel)
public CamelJMXAgentDefinition getCamelJMXAgent()
getCamelJMXAgent
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public List<RouteBuilderDefinition> getBuilderRefs()
getBuilderRefs
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setBuilderRefs(List<RouteBuilderDefinition> builderRefs)
public List<RouteContextRefDefinition> getRouteRefs()
getRouteRefs
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRouteRefs(List<RouteContextRefDefinition> routeRefs)
public List<RestContextRefDefinition> getRestRefs()
getRestRefs
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setRestRefs(List<RestContextRefDefinition> restRefs)
public String getErrorHandlerRef()
getErrorHandlerRef
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setErrorHandlerRef(String errorHandlerRef)
errorHandlerRef
- the Spring bean ref of the error handlerpublic void setDataFormats(DataFormatsDefinition dataFormats)
public DataFormatsDefinition getDataFormats()
getDataFormats
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setOnExceptions(List<OnExceptionDefinition> onExceptions)
public List<OnExceptionDefinition> getOnExceptions()
getOnExceptions
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public List<OnCompletionDefinition> getOnCompletions()
getOnCompletions
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setOnCompletions(List<OnCompletionDefinition> onCompletions)
public ShutdownRoute getShutdownRoute()
getShutdownRoute
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setShutdownRoute(ShutdownRoute shutdownRoute)
public ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setShutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
public List<ThreadPoolProfileDefinition> getThreadPoolProfiles()
getThreadPoolProfiles
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setThreadPoolProfiles(List<ThreadPoolProfileDefinition> threadPoolProfiles)
public String getDependsOn()
getDependsOn
in class AbstractCamelContextFactoryBean<SpringCamelContext>
public void setDependsOn(String dependsOn)
public boolean isImplicitId()
public void setImplicitId(boolean flag)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.