Package org.apache.camel.core.xml
Class AbstractCamelContextFactoryBean<T extends org.apache.camel.model.ModelCamelContext>
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.core.xml.AbstractCamelContextFactoryBean<T>
- All Implemented Interfaces:
org.apache.camel.model.rest.RestContainer
,org.apache.camel.model.RouteConfigurationContainer
,org.apache.camel.model.RouteContainer
,org.apache.camel.model.RouteTemplateContainer
,org.apache.camel.model.TemplatedRouteContainer
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, org.apache.camel.model.TemplatedRouteContainer
A factory to create and initialize a
CamelContext
and install routes either explicitly configured or found by
searching the classpath for Java classes which extend RouteBuilder
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
protected void
Strategy method to try findRouteBuilder
instances on the classpathprotected 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
abstract String
abstract String
abstract String
protected abstract <S> S
getBeanForType
(Class<S> clazz) abstract String
abstract List<?>
getBeans()
abstract List<AbstractCamelFactoryBean<?>>
abstract List<org.apache.camel.model.RouteBuilderDefinition>
abstract CamelJMXAgentDefinition
abstract CamelPropertyPlaceholderDefinition
abstract CamelRouteControllerDefinition
abstract CamelStreamCachingStrategyDefinition
abstract String
abstract T
getContext
(boolean create) abstract org.apache.camel.model.ContextScanDefinition
abstract org.apache.camel.model.dataformat.DataFormatsDefinition
abstract String
getDebug()
abstract org.apache.camel.model.FaultToleranceConfigurationDefinition
abstract org.apache.camel.model.Resilience4jConfigurationDefinition
abstract org.apache.camel.model.cloud.ServiceCallConfigurationDefinition
abstract String
abstract String
abstract String
abstract List<? extends AbstractCamelEndpointFactoryBean>
abstract String
abstract List<org.apache.camel.model.FaultToleranceConfigurationDefinition>
abstract org.apache.camel.model.GlobalOptionsDefinition
abstract String
abstract List<org.apache.camel.model.InterceptFromDefinition>
abstract List<org.apache.camel.model.InterceptDefinition>
abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition>
abstract String
abstract String
abstract String
abstract String
abstract String
abstract String
abstract String
abstract List<org.apache.camel.model.OnCompletionDefinition>
abstract List<org.apache.camel.model.OnExceptionDefinition>
abstract String[]
abstract org.apache.camel.model.PackageScanDefinition
abstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean>
abstract List<org.apache.camel.model.Resilience4jConfigurationDefinition>
abstract org.apache.camel.model.rest.RestConfigurationDefinition
abstract List<org.apache.camel.model.RestContextRefDefinition>
abstract List<org.apache.camel.model.rest.RestDefinition>
getRests()
abstract List<org.apache.camel.model.RouteConfigurationContextRefDefinition>
abstract List<org.apache.camel.model.RouteConfigurationDefinition>
abstract List<org.apache.camel.model.RouteContextRefDefinition>
abstract List<org.apache.camel.model.RouteDefinition>
abstract List<org.apache.camel.model.RouteTemplateContextRefDefinition>
abstract List<org.apache.camel.model.RouteTemplateDefinition>
abstract String
abstract List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition>
abstract org.apache.camel.ShutdownRoute
abstract org.apache.camel.ShutdownRunningTask
abstract String
abstract org.apache.camel.StartupSummaryLevel
abstract String
abstract List<org.apache.camel.model.TemplatedRouteDefinition>
abstract String
abstract List<org.apache.camel.model.ThreadPoolProfileDefinition>
abstract String
getTrace()
abstract String
abstract String
abstract org.apache.camel.model.transformer.TransformersDefinition
abstract org.apache.camel.TypeConverterExists
abstract org.apache.camel.LoggingLevel
abstract String
abstract String
abstract String
abstract String
abstract org.apache.camel.model.validator.ValidatorsDefinition
protected abstract void
initBeanPostProcessor
(T context) protected void
initCamelContext
(T context) Initializes the contextprotected abstract void
initCustomRegistry
(T context) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
initThreadPoolProfiles
(T context) protected void
Strategy to install all available routes into the contextboolean
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
Setup all the routes which must be done prior startingCamelContext
.Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.model.rest.RestContainer
setRests
Methods inherited from interface org.apache.camel.model.RouteConfigurationContainer
setRouteConfigurations
Methods inherited from interface org.apache.camel.model.RouteContainer
setRoutes
Methods inherited from interface org.apache.camel.model.RouteTemplateContainer
setRouteTemplates
Methods inherited from interface org.apache.camel.model.TemplatedRouteContainer
setTemplatedRoutes
-
Constructor Details
-
AbstractCamelContextFactoryBean
public AbstractCamelContextFactoryBean()
-
-
Method Details
-
getObject
- Throws:
Exception
-
getObjectType
-
isSingleton
public boolean isSingleton() -
getContextClassLoaderOnStart
-
afterPropertiesSet
- Throws:
Exception
-
setupRoutes
Setup all the routes which must be done prior startingCamelContext
.- Throws:
Exception
-
initCustomRegistry
-
initJMXAgent
- Throws:
Exception
-
initStreamCachingStrategy
- Throws:
Exception
-
initRouteController
- Throws:
Exception
-
initPropertyPlaceholder
- Throws:
Exception
-
initRouteRefs
- Throws:
Exception
-
initRouteConfigurationRefs
- Throws:
Exception
-
initRouteTemplateRefs
- Throws:
Exception
-
initRestRefs
- Throws:
Exception
-
getBeanForType
-
destroy
- Throws:
Exception
-
getContext
-
getContext
-
getRouteTemplates
- Specified by:
getRouteTemplates
in interfaceorg.apache.camel.model.RouteTemplateContainer
-
getTemplatedRoutes
- Specified by:
getTemplatedRoutes
in interfaceorg.apache.camel.model.TemplatedRouteContainer
-
getRouteConfigurations
- Specified by:
getRouteConfigurations
in interfaceorg.apache.camel.model.RouteConfigurationContainer
-
getRoutes
- Specified by:
getRoutes
in interfaceorg.apache.camel.model.RouteContainer
-
getRests
- Specified by:
getRests
in interfaceorg.apache.camel.model.rest.RestContainer
-
getRestConfiguration
public abstract org.apache.camel.model.rest.RestConfigurationDefinition getRestConfiguration() -
getEndpoints
-
getRedeliveryPolicies
-
getIntercepts
-
getInterceptFroms
-
getInterceptSendToEndpoints
public abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints() -
getGlobalOptions
public abstract org.apache.camel.model.GlobalOptionsDefinition getGlobalOptions() -
getPackages
-
getPackageScan
public abstract org.apache.camel.model.PackageScanDefinition getPackageScan() -
setPackageScan
public abstract void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan) -
getContextScan
public abstract org.apache.camel.model.ContextScanDefinition getContextScan() -
setContextScan
public abstract void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan) -
getCamelPropertyPlaceholder
-
getStartupSummaryLevel
public abstract org.apache.camel.StartupSummaryLevel getStartupSummaryLevel() -
getTrace
-
getTracePattern
-
getTraceLoggingFormat
-
getBacklogTrace
-
getDebug
-
getMessageHistory
-
getSourceLocationEnabled
-
getLogMask
-
getLogExhaustedMessageBody
-
getStreamCache
-
getDelayer
-
getAutoStartup
-
getUseMDCLogging
-
getMDCLoggingKeysPattern
-
getDumpRoutes
-
getUseDataType
-
getUseBreadcrumb
-
getBeanPostProcessorEnabled
-
getAllowUseOriginalMessage
-
getCaseInsensitiveHeaders
-
getAutowiredEnabled
-
getRuntimeEndpointRegistryEnabled
-
getManagementNamePattern
-
getThreadNamePattern
-
getLoadTypeConverters
-
getLoadHealthChecks
-
getInflightRepositoryBrowseEnabled
-
getTypeConverterStatisticsEnabled
-
getTypeConverterExistsLoggingLevel
public abstract org.apache.camel.LoggingLevel getTypeConverterExistsLoggingLevel() -
getTypeConverterExists
public abstract org.apache.camel.TypeConverterExists getTypeConverterExists() -
getCamelJMXAgent
-
getCamelStreamCachingStrategy
-
getCamelRouteController
-
getRouteConfigurationRefs
public abstract List<org.apache.camel.model.RouteConfigurationContextRefDefinition> getRouteConfigurationRefs() -
getBuilderRefs
-
getRouteRefs
-
getRouteTemplateRefs
public abstract List<org.apache.camel.model.RouteTemplateContextRefDefinition> getRouteTemplateRefs() -
getRestRefs
-
getErrorHandlerRef
-
getDataFormats
public abstract org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats() -
getTransformers
public abstract org.apache.camel.model.transformer.TransformersDefinition getTransformers() -
getValidators
public abstract org.apache.camel.model.validator.ValidatorsDefinition getValidators() -
getOnExceptions
-
getOnCompletions
-
getShutdownRoute
public abstract org.apache.camel.ShutdownRoute getShutdownRoute() -
getShutdownRunningTask
public abstract org.apache.camel.ShutdownRunningTask getShutdownRunningTask() -
getThreadPoolProfiles
-
getDependsOn
-
getBeansFactory
-
getBeans
-
getDefaultServiceCallConfiguration
public abstract org.apache.camel.model.cloud.ServiceCallConfigurationDefinition getDefaultServiceCallConfiguration() -
getServiceCallConfigurations
public abstract List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> getServiceCallConfigurations() -
getDefaultResilience4jConfiguration
public abstract org.apache.camel.model.Resilience4jConfigurationDefinition getDefaultResilience4jConfiguration() -
getResilience4jConfigurations
public abstract List<org.apache.camel.model.Resilience4jConfigurationDefinition> getResilience4jConfigurations() -
getDefaultFaultToleranceConfiguration
public abstract org.apache.camel.model.FaultToleranceConfigurationDefinition getDefaultFaultToleranceConfiguration() -
getFaultToleranceConfigurations
public abstract List<org.apache.camel.model.FaultToleranceConfigurationDefinition> getFaultToleranceConfigurations() -
initCamelContext
Initializes the context- Parameters:
context
- the context- Throws:
Exception
- is thrown if error occurred
-
initThreadPoolProfiles
- Throws:
Exception
-
initBeanPostProcessor
-
installRoutes
Strategy to install all available routes into the context- Throws:
Exception
-
postProcessBeforeInit
protected abstract void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder) -
findRouteBuilders
Strategy method to try findRouteBuilder
instances on the classpath- Throws:
Exception
-
findRouteBuildersByPackageScan
protected abstract void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception - Throws:
Exception
-
findRouteBuildersByContextScan
protected abstract void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders) throws Exception - Throws:
Exception
-