public class CamelContextFactoryBean extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
BlueprintCamelContext
and install routes either explicitly configured in
Blueprint XML or found by searching the classpath for Java classes which extend
RouteBuilder
using the nested setPackages(String[])
.Constructor and Description |
---|
CamelContextFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected BlueprintCamelContext |
createContext() |
void |
destroy() |
protected void |
findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
boolean includeNonSingletons,
List<org.apache.camel.RoutesBuilder> builders) |
protected void |
findRouteBuildersByPackageScan(String[] packages,
org.apache.camel.spi.PackageScanFilter filter,
List<org.apache.camel.RoutesBuilder> builders) |
String |
getAllowUseOriginalMessage() |
String |
getAutoStartup() |
protected <S> S |
getBeanForType(Class<S> clazz) |
List<?> |
getBeans() |
List<org.apache.camel.model.RouteBuilderDefinition> |
getBuilderRefs() |
org.apache.camel.core.xml.CamelJMXAgentDefinition |
getCamelJMXAgent() |
org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition |
getCamelPropertyPlaceholder() |
org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition |
getCamelStreamCachingStrategy() |
BlueprintCamelContext |
getContext(boolean create) |
org.apache.camel.model.ContextScanDefinition |
getContextScan() |
org.apache.camel.model.dataformat.DataFormatsDefinition |
getDataFormats() |
String |
getDelayer() |
String |
getDependsOn() |
List<CamelEndpointFactoryBean> |
getEndpoints() |
String |
getErrorHandlerRef() |
String |
getHandleFault() |
List<org.apache.camel.model.InterceptFromDefinition> |
getInterceptFroms() |
List<org.apache.camel.model.InterceptDefinition> |
getIntercepts() |
List<org.apache.camel.model.InterceptSendToEndpointDefinition> |
getInterceptSendToEndpoints() |
Boolean |
getLazyLoadTypeConverters()
Deprecated.
|
String |
getLogExhaustedMessageBody() |
String |
getManagementNamePattern() |
String |
getMessageHistory() |
Class<BlueprintCamelContext> |
getObjectType() |
List<org.apache.camel.model.OnCompletionDefinition> |
getOnCompletions() |
List<org.apache.camel.model.OnExceptionDefinition> |
getOnExceptions() |
String[] |
getPackages() |
org.apache.camel.model.PackageScanDefinition |
getPackageScan() |
org.apache.camel.model.PropertiesDefinition |
getProperties() |
List<CamelRedeliveryPolicyFactoryBean> |
getRedeliveryPolicies() |
org.apache.camel.model.rest.RestConfigurationDefinition |
getRestConfiguration() |
List<org.apache.camel.model.RestContextRefDefinition> |
getRestRefs() |
List<org.apache.camel.model.rest.RestDefinition> |
getRests() |
List<org.apache.camel.model.RouteContextRefDefinition> |
getRouteRefs() |
List<org.apache.camel.model.RouteDefinition> |
getRoutes() |
String |
getRuntimeEndpointRegistryEnabled() |
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
String |
getStreamCache() |
String |
getThreadNamePattern() |
List<org.apache.camel.model.ThreadPoolProfileDefinition> |
getThreadPoolProfiles() |
List<CamelThreadPoolFactoryBean> |
getThreadPools() |
String |
getTrace() |
org.apache.camel.TypeConverterExists |
getTypeConverterExists() |
org.apache.camel.LoggingLevel |
getTypeConverterExistsLoggingLevel() |
Boolean |
getTypeConverterStatisticsEnabled() |
Boolean |
getUseBlueprintPropertyResolver() |
String |
getUseBreadcrumb() |
String |
getUseMDCLogging() |
protected void |
initBeanPostProcessor(BlueprintCamelContext context) |
protected void |
initCustomRegistry(BlueprintCamelContext context) |
protected void |
initPropertyPlaceholder() |
boolean |
isImplicitId() |
boolean |
isUseBlueprintPropertyResolver() |
protected void |
postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder) |
void |
setAllowUseOriginalMessage(String allowUseOriginalMessage) |
void |
setAutoStartup(String autoStartup) |
void |
setBeans(List<?> beans) |
void |
setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer) |
void |
setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition camelJMXAgent) |
void |
setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder) |
void |
setCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy) |
void |
setContextScan(org.apache.camel.model.ContextScanDefinition contextScan) |
void |
setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats) |
void |
setDelayer(String delayer) |
void |
setDependsOn(String dependsOn) |
void |
setEndpoints(List<CamelEndpointFactoryBean> endpoints) |
void |
setErrorHandlerRef(String errorHandlerRef) |
void |
setHandleFault(String handleFault) |
void |
setImplicitId(boolean flag) |
void |
setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms) |
void |
setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts) |
void |
setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints) |
void |
setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
Deprecated.
|
void |
setLogExhaustedMessageBody(String logExhaustedMessageBody) |
void |
setManagementNamePattern(String managementNamePattern) |
void |
setMessageHistory(String messageHistory) |
void |
setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions) |
void |
setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions) |
void |
setPackages(String[] packages) |
void |
setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan) |
void |
setProperties(org.apache.camel.model.PropertiesDefinition properties) |
void |
setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies) |
void |
setRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration) |
void |
setRestRefs(List<org.apache.camel.model.RestContextRefDefinition> restRefs) |
void |
setRests(List<org.apache.camel.model.rest.RestDefinition> rests) |
void |
setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs) |
void |
setRoutes(List<org.apache.camel.model.RouteDefinition> routes) |
void |
setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled) |
void |
setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) |
void |
setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
void |
setStreamCache(String streamCache) |
void |
setThreadNamePattern(String threadNamePattern) |
void |
setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles) |
void |
setThreadPools(List<CamelThreadPoolFactoryBean> threadPools) |
void |
setTrace(String trace) |
void |
setTypeConverterExists(org.apache.camel.TypeConverterExists typeConverterExists) |
void |
setTypeConverterExistsLoggingLevel(org.apache.camel.LoggingLevel typeConverterExistsLoggingLevel) |
void |
setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled) |
void |
setUseBlueprintPropertyResolver(Boolean useBlueprintPropertyResolver) |
void |
setUseBreadcrumb(String useBreadcrumb) |
void |
setUseMDCLogging(String useMDCLogging) |
findRouteBuilders, getContext, getContextClassLoaderOnStart, getObject, initCamelContext, initJMXAgent, initLazyLoadTypeConverters, initRestRefs, initRouteRefs, initStreamCachingStrategy, initThreadPoolProfiles, installRoutes, isSingleton, setupRoutes
public CamelContextFactoryBean()
public Class<BlueprintCamelContext> getObjectType()
getObjectType
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public BlueprintCamelContext getContext(boolean create)
getContext
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
protected BlueprintCamelContext createContext()
protected void initCustomRegistry(BlueprintCamelContext context)
initCustomRegistry
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
protected <S> S getBeanForType(Class<S> clazz)
getBeanForType
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
protected void initPropertyPlaceholder() throws Exception
initPropertyPlaceholder
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Exception
protected void initBeanPostProcessor(BlueprintCamelContext context)
initBeanPostProcessor
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
protected void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
postProcessBeforeInit
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
protected void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception
findRouteBuildersByPackageScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Exception
protected void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders) throws Exception
findRouteBuildersByContextScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Exception
public void destroy() throws Exception
destroy
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Exception
public String getDependsOn()
getDependsOn
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setDependsOn(String dependsOn)
public String getAutoStartup()
getAutoStartup
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setAutoStartup(String autoStartup)
public String getUseMDCLogging()
getUseMDCLogging
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setUseMDCLogging(String useMDCLogging)
public String getUseBreadcrumb()
getUseBreadcrumb
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setUseBreadcrumb(String useBreadcrumb)
public String getAllowUseOriginalMessage()
getAllowUseOriginalMessage
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setAllowUseOriginalMessage(String allowUseOriginalMessage)
public String getRuntimeEndpointRegistryEnabled()
getRuntimeEndpointRegistryEnabled
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled)
public String getManagementNamePattern()
getManagementNamePattern
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setManagementNamePattern(String managementNamePattern)
public String getThreadNamePattern()
getThreadNamePattern
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setThreadNamePattern(String threadNamePattern)
@Deprecated public Boolean getLazyLoadTypeConverters()
getLazyLoadTypeConverters
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
@Deprecated public void setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
public Boolean getTypeConverterStatisticsEnabled()
getTypeConverterStatisticsEnabled
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
public org.apache.camel.TypeConverterExists getTypeConverterExists()
getTypeConverterExists
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setTypeConverterExists(org.apache.camel.TypeConverterExists typeConverterExists)
public org.apache.camel.LoggingLevel getTypeConverterExistsLoggingLevel()
getTypeConverterExistsLoggingLevel
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setTypeConverterExistsLoggingLevel(org.apache.camel.LoggingLevel typeConverterExistsLoggingLevel)
public org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
public org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
public org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
getCamelPropertyPlaceholder
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder)
public List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
getRouteRefs
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)
public List<org.apache.camel.model.RestContextRefDefinition> getRestRefs()
getRestRefs
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setRestRefs(List<org.apache.camel.model.RestContextRefDefinition> restRefs)
public List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
getRedeliveryPolicies
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)
public List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
getThreadPoolProfiles
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)
public List<CamelThreadPoolFactoryBean> getThreadPools()
public void setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)
public String getTrace()
getTrace
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public String getMessageHistory()
getMessageHistory
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setMessageHistory(String messageHistory)
public String getLogExhaustedMessageBody()
getLogExhaustedMessageBody
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setLogExhaustedMessageBody(String logExhaustedMessageBody)
public String getStreamCache()
getStreamCache
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setStreamCache(String streamCache)
public String getDelayer()
getDelayer
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setDelayer(String delayer)
public String getHandleFault()
getHandleFault
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setHandleFault(String handleFault)
public String getErrorHandlerRef()
getErrorHandlerRef
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setErrorHandlerRef(String errorHandlerRef)
public org.apache.camel.model.PropertiesDefinition getProperties()
getProperties
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setProperties(org.apache.camel.model.PropertiesDefinition properties)
public String[] getPackages()
getPackages
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setPackages(String[] packages)
public org.apache.camel.model.PackageScanDefinition getPackageScan()
getPackageScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
setPackageScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public org.apache.camel.model.ContextScanDefinition getContextScan()
getContextScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
setContextScan
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public org.apache.camel.core.xml.CamelJMXAgentDefinition getCamelJMXAgent()
getCamelJMXAgent
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition camelJMXAgent)
public org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition getCamelStreamCachingStrategy()
getCamelStreamCachingStrategy
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy)
public List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
getBuilderRefs
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
public List<CamelEndpointFactoryBean> getEndpoints()
getEndpoints
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setEndpoints(List<CamelEndpointFactoryBean> endpoints)
public org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
getDataFormats
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats)
public List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
getOnExceptions
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions)
public List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
getOnCompletions
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions)
public List<org.apache.camel.model.InterceptDefinition> getIntercepts()
getIntercepts
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts)
public List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
getInterceptFroms
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)
public List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
getInterceptSendToEndpoints
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)
public List<org.apache.camel.model.RouteDefinition> getRoutes()
getRoutes
in interface org.apache.camel.model.RouteContainer
getRoutes
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public List<org.apache.camel.model.rest.RestDefinition> getRests()
getRests
in interface org.apache.camel.model.rest.RestContainer
getRests
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public org.apache.camel.model.rest.RestConfigurationDefinition getRestConfiguration()
getRestConfiguration
in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
public void setRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration)
public boolean isImplicitId()
public void setImplicitId(boolean flag)
public Boolean getUseBlueprintPropertyResolver()
public void setUseBlueprintPropertyResolver(Boolean useBlueprintPropertyResolver)
public boolean isUseBlueprintPropertyResolver()
Apache Camel