这是用户在 2024-3-28 21:53 为 https://camel.apache.org/manual/advanced-configuration-of-camelcontext-using-spring.html 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?

Camel Spring XML Auto Configuration
骆驼弹簧 xml 自动配置

This is only applicable when using Spring XML files with the camel-spring-xml JAR.
这仅适用于使用 Spring XML 文件和 camel-spring-xml JAR 时适用。

A spring XML file is the XML files that uses <beans> as root tag and have an embedded <camelContext>. This is the classic way of using XML DSL with Apache Camel, that was implemented before Spring Boot.
Spring XML 文件是使用 <beans> 作为根标签并嵌入 <camelContext> 的 XML 文件。.这是使用 Apache Camel 的 XML DSL 的经典方式,在 Spring Boot 之前就已实现。

If you use Camel on Spring Boot, then look at Camel Context Auto Configuration instead.
如果您在 Spring Boot 上使用 Camel,那么请改用 Camel 上下文自动配置。

Auto configuration of Optional Services
自动配置可选服务

Camel will configure these functions by doing a lookup in the Spring bean registry to find beans of the given type.
Camel 将通过在 Spring Bean 注册表中查找指定类型的 Bean 来配置这些函数。

The following list all requires at most 1 beans defined. If there are more than 1 bean of this type, then Camel will not use it.
以下列表都要求最多定义 1 个 Bean。如果该类型的 bean 超过 1 个,Camel 将不会使用它。

Type 类型 Number of beans 豆子数量 Description 说明

AsyncProcessorAwaitManager

0..1

To use a 3rd part async process await manager.
使用第三部分异步进程等待管理器。

BacklogTracer 积压跟踪器

0..1

To use a 3rd party BacklogTracer.
使用第三方 BacklogTracer。

ClassResolver 类解决程序

0..1

To use a 3rd party class resolver. More details at Pluggable Class Resolvers.
使用第三方类解析器。更多详情,请访问 Pluggable Class Resolvers。

Debugger 调试器

0..1

To use a Debugger usually for tooling.
调试器通常用于工具。

Delayer 延迟器

0..1

To use a 3rd part Delayer.
使用第三部分延时器。

EventFactory 事件工厂

0..1

To use a 3rd part event factory.
使用第三方事件工厂。

ExecutorServiceManager

0..1

To use a 3rd part executor service manager. More details at Threading Model.
使用第三方执行器服务管理器。更多详情,请访问线程模型。

ExecutorServiceStrategy 执行器服务策略

0..1

To use a 3rd part executor service strategy. More details at Threading Model.
使用第三方执行器服务策略。更多详情,请访问线程模型。

FactoryFinderResolver

0..1

To use a 3rd party factory finder.
使用第三方工厂搜索器。

HeadersMapFactory

0..1

To use a 3rd party HeadersMapFactory implementation.
使用第三方 HeadersMapFactory 实现。

HealthCheckRegistry 健康检查注册表

0..1

To use a 3rd party HealthCheckRegistry implementation.
使用第三方 HealthCheckRegistry 实现。

InflightRepository 飞行信息库

0..1

To use a 3rd part inflight repository.
使用第三方机上存储库。

Logger 记录仪

0..1

To use provided org.slf4j.Logger for Log component and log() EIP.
使用为日志组件提供的 org.slf4j.Logger 和 log() EIP。

ManagementObjectNameStrategy
管理对象名称策略

0..1

To use a 3rd part strategy for naming MBeans for management.
使用第三部分策略为 MBeans 命名,以便进行管理。

ManagementStrategy 管理战略

0..1

To use a 3rd part strategy for management, for example JMX management.
使用第三方策略进行管理,例如 JMX 管理。

MessageHistoryFactory

0..1

To use a 3rd party MessageHistoryFactory implementation.
使用第三方 MessageHistoryFactory 实现。

ModelJAXBContextFactory 模型 JAXBContextFactory

0..1

To use a 3rd party model JAXB ContextFactory
使用第三方模型 JAXB ContextFactory

NodeIdFactory

0..1

To use a 3rd part node id factory.
使用第三方节点 ID 工厂。

PackageScanClassResolver

0..1

To use a 3rd party package scan resolver. More details at Pluggable Class Resolvers.
使用第三方软件包扫描解析器。更多详情,请访问 Pluggable Class Resolvers。

ProcessorFactory 处理器工厂

0..1

To use a 3rd part processor factory.
使用第三部分处理器工厂。

Registry 登记处

0..1

To use a 3rd party bean registry. By default Camel will use Spring ApplicationContext (when using Spring) as registry.
使用第三方 Bean 注册表。默认情况下,Camel 将使用 Spring ApplicationContext(使用 Spring 时)作为注册表。

RuntimeEndpointRegistry 运行时端点注册表

0..1

To use a 3rd party RuntimeEndpointRegistry implementation.
使用第三方 RuntimeEndpointRegistry 实现。

RuntimeEndpointRegistry 运行时端点注册表

0..1

To use a 3rd party RuntimeEndpointRegistry implementation.
使用第三方 RuntimeEndpointRegistry 实现。

ShutdownStrategy 关闭策略

0..1

To use a 3rd part shutdown strategy.
使用第三部分关闭策略。

StreamCachingStrategy 流缓存策略

0..1

To use a 3rd part Stream caching strategy.
使用第三部分流缓存策略。

ThreadPoolFactory 线程池工厂

0..1

To use a 3rd part thread pool factory. More details at Threading Model.
使用第三部分螺纹池工厂。更多详情,请参阅 "线程模型"。

TraceFormatter 跟踪格式

0..1

To use a bean that has the tracing options configured.
要使用已配置跟踪选项的 Bean,请执行以下操作

Tracer 追踪器

0..1

To use a 3rd party Tracer.
使用第三方跟踪器。

UnitOfWorkFactory 工作单元工厂

0..1

To use 3rd part UnitOfWork implementations created by the factory.
使用工厂创建的第三部分 UnitOfWork 实现。

UuidGenerator

0..1

To use a 3rd part UuidGenerator.
使用第三方 UuidGenerator。

And the following options have support for any number of beans defined.
以下选项支持定义任意数量的豆子。

Type 类型 Number of beans 豆子数量 Description 说明

CamelClusterService 骆驼集群服务

0..n

To detect Clustering services.
检测集群服务。

EndpointStrategy 端点策略

0..n

To use 3rd part endpoint strategies.
使用第三部分终端策略。

EventNotifier 事件注释器

0..n

To use 3rd part event notifiers.
使用第三方事件通知程序。

HealthCheckRepository 健康检查存储库

0..n

To use Camel Health Check repositories.
使用 Camel Health Check 资源库。

InterceptStrategy 拦截策略

0..n

To use your own Interceptthat intercepts every processing steps in all routes in the CamelContext. For instance you can use this to do an AOP like performance timer interceptor.
使用自己的拦截器,拦截 CamelContext 中所有路由的每个处理步骤。例如,你可以用它来做一个类似 AOP 的性能计时器拦截器。

LifecycleStrategy 生命周期战略

0..n

To use 3rd party lifecycle strategies.
使用第三方生命周期策略。

LogListener 日志监听器

0..n

To use custom LogListener implementations.
使用自定义 LogListener 实现。

ModelLifecycleStrategy 模型生命周期策略

0..n

To use 3rd party model lifecycle strategies.
使用第三方模型生命周期策略。

RoutePolicyFactory

0..n

To use a 3rd party route policy factory to create a route policy for every route.
使用第三方路由策略工厂为每条路由创建路由策略。

ServiceRegistry 服务注册表

0..n

To use camel-cloud Service Registries.
使用骆驼云服务注册表。