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. |
ClassResolver 类解决程序 | 0..1 | To use a 3rd party class resolver. More details at 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. |
HealthCheckRegistry 健康检查注册表 | 0..1 | To use a 3rd party HealthCheckRegistry implementation. |
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. |
ManagementObjectNameStrategy | 0..1 | To use a 3rd part strategy for naming MBeans for management. |
ManagementStrategy 管理战略 | 0..1 | To use a 3rd part strategy for management, for example JMX management. |
MessageHistoryFactory | 0..1 | To use a 3rd party MessageHistoryFactory implementation. |
ModelJAXBContextFactory 模型 JAXBContextFactory | 0..1 | To use a 3rd party model JAXB ContextFactory |
NodeIdFactory | 0..1 | To use a 3rd part node id factory. |
PackageScanClassResolver | 0..1 | To use a 3rd party package scan resolver. More details at 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. |
RuntimeEndpointRegistry 运行时端点注册表 | 0..1 | To use a 3rd party RuntimeEndpointRegistry implementation. |
RuntimeEndpointRegistry 运行时端点注册表 | 0..1 | To use a 3rd party RuntimeEndpointRegistry implementation. |
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. |
Tracer 追踪器 | 0..1 | To use a 3rd party Tracer. |
UnitOfWorkFactory 工作单元工厂 | 0..1 | To use 3rd part |
UuidGenerator | 0..1 | To use a 3rd part 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. |
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. |
LifecycleStrategy 生命周期战略 | 0..n | To use 3rd party lifecycle strategies. |
LogListener 日志监听器 | 0..n | To use custom |
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. |