public abstract class AbstractCamelContextFactoryBean<T extends org.apache.camel.model.ModelCamelContext>
extends org.apache.camel.model.IdentifiedType
implements org.apache.camel.model.RouteTemplateContainer, org.apache.camel.model.RouteConfigurationContainer, org.apache.camel.model.RouteContainer, org.apache.camel.model.rest.RestContainer
CamelContext and install routes either explicitly configured or found by
searching the classpath for Java classes which extend RouteBuilder.| Constructor and Description |
|---|
AbstractCamelContextFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected void |
findRouteBuilders()
Strategy method to try find
RouteBuilder instances on the classpath |
protected abstract void |
findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
boolean includeNonSingletons,
List<org.apache.camel.RoutesBuilder> builders) |
protected abstract void |
findRouteBuildersByPackageScan(String[] packages,
org.apache.camel.spi.PackageScanFilter filter,
List<org.apache.camel.RoutesBuilder> builders) |
abstract String |
getAllowUseOriginalMessage() |
abstract String |
getAutoStartup() |
abstract String |
getAutowiredEnabled() |
abstract String |
getBacklogTrace() |
protected abstract <S> S |
getBeanForType(Class<S> clazz) |
abstract String |
getBeanPostProcessorEnabled() |
abstract List<?> |
getBeans() |
abstract List<AbstractCamelFactoryBean<?>> |
getBeansFactory() |
abstract List<org.apache.camel.model.RouteBuilderDefinition> |
getBuilderRefs() |
abstract CamelJMXAgentDefinition |
getCamelJMXAgent() |
abstract CamelPropertyPlaceholderDefinition |
getCamelPropertyPlaceholder() |
abstract CamelRouteControllerDefinition |
getCamelRouteController() |
abstract CamelStreamCachingStrategyDefinition |
getCamelStreamCachingStrategy() |
abstract String |
getCaseInsensitiveHeaders() |
T |
getContext() |
abstract T |
getContext(boolean create) |
ClassLoader |
getContextClassLoaderOnStart() |
abstract org.apache.camel.model.ContextScanDefinition |
getContextScan() |
abstract org.apache.camel.model.dataformat.DataFormatsDefinition |
getDataFormats() |
abstract String |
getDebug() |
abstract org.apache.camel.model.FaultToleranceConfigurationDefinition |
getDefaultFaultToleranceConfiguration() |
abstract org.apache.camel.model.HystrixConfigurationDefinition |
getDefaultHystrixConfiguration() |
abstract org.apache.camel.model.Resilience4jConfigurationDefinition |
getDefaultResilience4jConfiguration() |
abstract org.apache.camel.model.cloud.ServiceCallConfigurationDefinition |
getDefaultServiceCallConfiguration() |
abstract String |
getDelayer() |
abstract String |
getDependsOn() |
abstract String |
getDumpRoutes() |
abstract List<? extends AbstractCamelEndpointFactoryBean> |
getEndpoints() |
abstract String |
getErrorHandlerRef() |
abstract List<org.apache.camel.model.FaultToleranceConfigurationDefinition> |
getFaultToleranceConfigurations() |
abstract org.apache.camel.model.GlobalOptionsDefinition |
getGlobalOptions() |
abstract List<org.apache.camel.model.HystrixConfigurationDefinition> |
getHystrixConfigurations() |
abstract String |
getInflightRepositoryBrowseEnabled() |
abstract List<org.apache.camel.model.InterceptFromDefinition> |
getInterceptFroms() |
abstract List<org.apache.camel.model.InterceptDefinition> |
getIntercepts() |
abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition> |
getInterceptSendToEndpoints() |
abstract String |
getLoadHealthChecks() |
abstract String |
getLoadTypeConverters() |
abstract String |
getLogExhaustedMessageBody() |
abstract String |
getLogMask() |
abstract String |
getManagementNamePattern() |
abstract String |
getMDCLoggingKeysPattern() |
abstract String |
getMessageHistory() |
T |
getObject() |
abstract Class<T> |
getObjectType() |
abstract List<org.apache.camel.model.OnCompletionDefinition> |
getOnCompletions() |
abstract List<org.apache.camel.model.OnExceptionDefinition> |
getOnExceptions() |
abstract String[] |
getPackages() |
abstract org.apache.camel.model.PackageScanDefinition |
getPackageScan() |
abstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean> |
getRedeliveryPolicies() |
abstract List<org.apache.camel.model.Resilience4jConfigurationDefinition> |
getResilience4jConfigurations() |
abstract org.apache.camel.model.rest.RestConfigurationDefinition |
getRestConfiguration() |
abstract List<org.apache.camel.model.RestContextRefDefinition> |
getRestRefs() |
abstract List<org.apache.camel.model.rest.RestDefinition> |
getRests() |
abstract List<org.apache.camel.model.RouteConfigurationContextRefDefinition> |
getRouteConfigurationRefs() |
abstract List<org.apache.camel.model.RouteConfigurationDefinition> |
getRouteConfigurations() |
abstract List<org.apache.camel.model.RouteContextRefDefinition> |
getRouteRefs() |
abstract List<org.apache.camel.model.RouteDefinition> |
getRoutes() |
abstract List<org.apache.camel.model.RouteTemplateContextRefDefinition> |
getRouteTemplateRefs() |
abstract List<org.apache.camel.model.RouteTemplateDefinition> |
getRouteTemplates() |
abstract String |
getRuntimeEndpointRegistryEnabled() |
abstract List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> |
getServiceCallConfigurations() |
abstract org.apache.camel.ShutdownRoute |
getShutdownRoute() |
abstract org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
abstract org.apache.camel.StartupSummaryLevel |
getStartupSummaryLevel() |
abstract String |
getStreamCache() |
abstract String |
getThreadNamePattern() |
abstract List<org.apache.camel.model.ThreadPoolProfileDefinition> |
getThreadPoolProfiles() |
abstract String |
getTrace() |
abstract String |
getTracePattern() |
abstract org.apache.camel.model.transformer.TransformersDefinition |
getTransformers() |
abstract org.apache.camel.TypeConverterExists |
getTypeConverterExists() |
abstract org.apache.camel.LoggingLevel |
getTypeConverterExistsLoggingLevel() |
abstract String |
getTypeConverterStatisticsEnabled() |
abstract String |
getUseBreadcrumb() |
abstract String |
getUseDataType() |
abstract String |
getUseMDCLogging() |
abstract org.apache.camel.model.validator.ValidatorsDefinition |
getValidators() |
protected abstract void |
initBeanPostProcessor(T context) |
protected void |
initCamelContext(T context)
Initializes the context
|
protected abstract void |
initCustomRegistry(T context) |
protected void |
initJMXAgent() |
protected void |
initPropertyPlaceholder() |
protected void |
initRestRefs() |
protected void |
initRouteConfigurationRefs() |
protected void |
initRouteController() |
protected void |
initRouteRefs() |
protected void |
initRouteTemplateRefs() |
protected void |
initStreamCachingStrategy() |
protected void |
initThreadPoolProfiles(T context) |
protected void |
installRoutes()
Strategy to install all available routes into the context
|
boolean |
isSingleton() |
protected abstract void |
postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder) |
abstract void |
setContextScan(org.apache.camel.model.ContextScanDefinition contextScan) |
abstract void |
setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan) |
protected void |
setupRoutes()
Setup all the routes which must be done prior starting
CamelContext. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic boolean isSingleton()
public ClassLoader getContextClassLoaderOnStart()
protected void setupRoutes()
throws Exception
CamelContext.Exceptionprotected abstract void initCustomRegistry(T context)
protected void initStreamCachingStrategy()
throws Exception
Exceptionprotected void initRouteConfigurationRefs()
throws Exception
Exceptionprotected abstract <S> S getBeanForType(Class<S> clazz)
public T getContext()
public abstract T getContext(boolean create)
public abstract List<org.apache.camel.model.RouteTemplateDefinition> getRouteTemplates()
getRouteTemplates in interface org.apache.camel.model.RouteTemplateContainerpublic abstract List<org.apache.camel.model.RouteConfigurationDefinition> getRouteConfigurations()
getRouteConfigurations in interface org.apache.camel.model.RouteConfigurationContainerpublic abstract List<org.apache.camel.model.RouteDefinition> getRoutes()
getRoutes in interface org.apache.camel.model.RouteContainerpublic abstract List<org.apache.camel.model.rest.RestDefinition> getRests()
getRests in interface org.apache.camel.model.rest.RestContainerpublic abstract org.apache.camel.model.rest.RestConfigurationDefinition getRestConfiguration()
public abstract List<? extends AbstractCamelEndpointFactoryBean> getEndpoints()
public abstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
public abstract List<org.apache.camel.model.InterceptDefinition> getIntercepts()
public abstract List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
public abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
public abstract org.apache.camel.model.GlobalOptionsDefinition getGlobalOptions()
public abstract String[] getPackages()
public abstract org.apache.camel.model.PackageScanDefinition getPackageScan()
public abstract void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
public abstract org.apache.camel.model.ContextScanDefinition getContextScan()
public abstract void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
public abstract CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
public abstract org.apache.camel.StartupSummaryLevel getStartupSummaryLevel()
public abstract String getTrace()
public abstract String getTracePattern()
public abstract String getBacklogTrace()
public abstract String getDebug()
public abstract String getMessageHistory()
public abstract String getLogMask()
public abstract String getLogExhaustedMessageBody()
public abstract String getStreamCache()
public abstract String getDelayer()
public abstract String getAutoStartup()
public abstract String getUseMDCLogging()
public abstract String getMDCLoggingKeysPattern()
public abstract String getDumpRoutes()
public abstract String getUseDataType()
public abstract String getUseBreadcrumb()
public abstract String getBeanPostProcessorEnabled()
public abstract String getAllowUseOriginalMessage()
public abstract String getCaseInsensitiveHeaders()
public abstract String getAutowiredEnabled()
public abstract String getRuntimeEndpointRegistryEnabled()
public abstract String getManagementNamePattern()
public abstract String getThreadNamePattern()
public abstract String getLoadTypeConverters()
public abstract String getLoadHealthChecks()
public abstract String getInflightRepositoryBrowseEnabled()
public abstract String getTypeConverterStatisticsEnabled()
public abstract org.apache.camel.LoggingLevel getTypeConverterExistsLoggingLevel()
public abstract org.apache.camel.TypeConverterExists getTypeConverterExists()
public abstract CamelJMXAgentDefinition getCamelJMXAgent()
public abstract CamelStreamCachingStrategyDefinition getCamelStreamCachingStrategy()
public abstract CamelRouteControllerDefinition getCamelRouteController()
public abstract List<org.apache.camel.model.RouteConfigurationContextRefDefinition> getRouteConfigurationRefs()
public abstract List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
public abstract List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
public abstract List<org.apache.camel.model.RouteTemplateContextRefDefinition> getRouteTemplateRefs()
public abstract List<org.apache.camel.model.RestContextRefDefinition> getRestRefs()
public abstract String getErrorHandlerRef()
public abstract org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
public abstract org.apache.camel.model.transformer.TransformersDefinition getTransformers()
public abstract org.apache.camel.model.validator.ValidatorsDefinition getValidators()
public abstract List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
public abstract List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
public abstract org.apache.camel.ShutdownRoute getShutdownRoute()
public abstract org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
public abstract List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
public abstract String getDependsOn()
public abstract List<AbstractCamelFactoryBean<?>> getBeansFactory()
public abstract List<?> getBeans()
public abstract org.apache.camel.model.cloud.ServiceCallConfigurationDefinition getDefaultServiceCallConfiguration()
public abstract List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> getServiceCallConfigurations()
public abstract org.apache.camel.model.HystrixConfigurationDefinition getDefaultHystrixConfiguration()
public abstract List<org.apache.camel.model.HystrixConfigurationDefinition> getHystrixConfigurations()
public abstract org.apache.camel.model.Resilience4jConfigurationDefinition getDefaultResilience4jConfiguration()
public abstract List<org.apache.camel.model.Resilience4jConfigurationDefinition> getResilience4jConfigurations()
public abstract org.apache.camel.model.FaultToleranceConfigurationDefinition getDefaultFaultToleranceConfiguration()
public abstract List<org.apache.camel.model.FaultToleranceConfigurationDefinition> getFaultToleranceConfigurations()
protected void initCamelContext(T context) throws Exception
context - the contextException - is thrown if error occurredprotected void initThreadPoolProfiles(T context) throws Exception
Exceptionprotected abstract void initBeanPostProcessor(T context)
protected void installRoutes()
throws Exception
Exceptionprotected abstract void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
protected void findRouteBuilders()
throws Exception
RouteBuilder instances on the classpathExceptionprotected abstract void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception
ExceptionApache Camel