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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()protected voidStrategy method to try findRouteBuilderinstances on the classpathprotected abstract voidfindRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders) protected abstract voidfindRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) abstract Stringabstract Stringabstract Stringabstract Stringprotected abstract <S> SgetBeanForType(Class<S> clazz) abstract Stringabstract List<?>getBeans()abstract List<AbstractCamelFactoryBean<?>>abstract List<org.apache.camel.model.RouteBuilderDefinition>abstract CamelJMXAgentDefinitionabstract CamelPropertyPlaceholderDefinitionabstract CamelRouteControllerDefinitionabstract CamelStreamCachingStrategyDefinitionabstract Stringabstract TgetContext(boolean create) abstract org.apache.camel.model.ContextScanDefinitionabstract org.apache.camel.model.dataformat.DataFormatsDefinitionabstract StringgetDebug()abstract org.apache.camel.model.FaultToleranceConfigurationDefinitionabstract org.apache.camel.model.Resilience4jConfigurationDefinitionabstract org.apache.camel.model.cloud.ServiceCallConfigurationDefinitionabstract Stringabstract Stringabstract Stringabstract List<? extends AbstractCamelEndpointFactoryBean>abstract Stringabstract List<org.apache.camel.model.FaultToleranceConfigurationDefinition>abstract org.apache.camel.model.GlobalOptionsDefinitionabstract Stringabstract List<org.apache.camel.model.InterceptFromDefinition>abstract List<org.apache.camel.model.InterceptDefinition>abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition>abstract Stringabstract Stringabstract Stringabstract Stringabstract Stringabstract Stringabstract Stringabstract List<org.apache.camel.model.OnCompletionDefinition>abstract List<org.apache.camel.model.OnExceptionDefinition>abstract String[]abstract org.apache.camel.model.PackageScanDefinitionabstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean>abstract List<org.apache.camel.model.Resilience4jConfigurationDefinition>abstract org.apache.camel.model.rest.RestConfigurationDefinitionabstract 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 Stringabstract List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition>abstract org.apache.camel.ShutdownRouteabstract org.apache.camel.ShutdownRunningTaskabstract Stringabstract org.apache.camel.StartupSummaryLevelabstract Stringabstract List<org.apache.camel.model.TemplatedRouteDefinition>abstract Stringabstract List<org.apache.camel.model.ThreadPoolProfileDefinition>abstract StringgetTrace()abstract Stringabstract Stringabstract org.apache.camel.model.transformer.TransformersDefinitionabstract org.apache.camel.TypeConverterExistsabstract org.apache.camel.LoggingLevelabstract Stringabstract Stringabstract Stringabstract Stringabstract org.apache.camel.model.validator.ValidatorsDefinitionprotected abstract voidinitBeanPostProcessor(T context) protected voidinitCamelContext(T context) Initializes the contextprotected abstract voidinitCustomRegistry(T context) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidinitThreadPoolProfiles(T context) protected voidStrategy to install all available routes into the contextbooleanprotected abstract voidpostProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder) abstract voidsetContextScan(org.apache.camel.model.ContextScanDefinition contextScan) abstract voidsetPackageScan(org.apache.camel.model.PackageScanDefinition packageScan) protected voidSetup all the routes which must be done prior startingCamelContext.Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.model.rest.RestContainer
setRestsMethods inherited from interface org.apache.camel.model.RouteConfigurationContainer
setRouteConfigurationsMethods inherited from interface org.apache.camel.model.RouteContainer
setRoutesMethods inherited from interface org.apache.camel.model.RouteTemplateContainer
setRouteTemplatesMethods 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:
getRouteTemplatesin interfaceorg.apache.camel.model.RouteTemplateContainer
-
getTemplatedRoutes
- Specified by:
getTemplatedRoutesin interfaceorg.apache.camel.model.TemplatedRouteContainer
-
getRouteConfigurations
- Specified by:
getRouteConfigurationsin interfaceorg.apache.camel.model.RouteConfigurationContainer
-
getRoutes
- Specified by:
getRoutesin interfaceorg.apache.camel.model.RouteContainer
-
getRests
- Specified by:
getRestsin 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 findRouteBuilderinstances 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
-