入口点解析器配置参考(Entry Point Resolver Configuration Reference)
这个章节提供了入口点解析器和入口点解析器集合的详细配置信息,这些信息直接来自mule.xsd并且被缓存。
入口解析器集合群(Entry Point Resolver Sets)
入口解析器集合(Entry Point Resolver Set)
一个入口解析器的扩展集合,这些确定如何在java中将信息传递到组件。每一个入口解析器都将被轮流尝试,直到有一个成功
将数据传递给组件为止。这是在model或者component中的一个元素,该model提供了默认值,个别组件值允许被覆盖。
Attributes of <entry-point-resolver-set...>
<entry-point-resolver-set...>子元素
| Name | Cardinality | Description |
|---|---|---|
| abstract-entry-point-resolver | 0..* |
A placeholder for an entry point resolver element. Entry point resolvers define how payloads are delivered to Java code by choosing the method to call. |
遗留的入口解析器集合(Legacy entry point resolver set)
一种可扩展的入口解析器集合(它决定了在java中如何将信息传递到组件)已经包含了解析器执行的标准逻辑,这已经包含了默认的,只需要
明确是否需要被其他入口解析器继承。这个元素可以设置在model或者component中,该model提供了默认值,个别组件值允许被覆盖。
Attributes of <legacy-entry-point-resolver-set...>
<legacy-entry-point-resolver-set...>子元素
| Name | Cardinality | Description |
|---|---|---|
| abstract-entry-point-resolver | 0..* |
A placeholder for an entry point resolver element. Entry point resolvers define how payloads are delivered to Java code by choosing the method to call. |
客户化入口解析器(Custom entry point resolver set)
一个客户化的入口解析器,允许用户提供如何在java中将信息传递到组件,这些元素能够被设置在model或者component中,
该model提供了默认值,个别组件值允许被覆盖。
Attributes of <custom-entry-point-resolver-set...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| class | class name | yes | An implementation of the EntryPointResolverSet interface. |
<custom-entry-point-resolver-set...>的子元素
| Name | Cardinality | Description |
|---|---|---|
| spring:property | 0..* | Spring-style property element for custom configuration. |
入口解析器(Entry Point Resolvers)
可被调用的入口解析器(Callable entry point resolver)
该入口解析器必须实现Callable接口,它将MuleEventContext传递给组件,这些元素能够被设置在model或者component中,
该model提供了默认值,个别组件值允许被覆盖。这些元素能够直接被使用,或者作为解析器集合的一部分。该解析器在集合中
将轮流被使用直到一个成功为止。
Attributes of <callable-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|
Child Elements of <callable-entry-point-resolver...>
| Name | Cardinality | Description |
|---|
客户化入口解析器(Custom entry point resolver)
一个客户化的入口解析器,允许用户提供如何在java中将信息传递到组件,这些元素能够被设置在model或者component中,
该model提供了默认值,个别组件值允许被覆盖。它可以直接被使用或者作为解析器集合中的一部分,该解析器在集合中
将轮流被使用直到一个成功为止。
Attributes of <custom-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| class | class name | yes | An implementation of the EntryPointResolver interface. |
Child Elements of <custom-entry-point-resolver...>
| Name | Cardinality | Description |
|---|---|---|
| spring:property | 0..* | Spring-style property element for custom configuration. |
属性入口解析器(Property entry point resolver)
使用消息属性来决定组件的哪个方法被调用,这些元素能够被设置在model或者component中, 该model提供了默认值,
个别组件值允许被覆盖。它可以直接被使用或者作为解析器集合中的一部分,该解析器在集合中将轮流被使用直到一个成功为止。
Attributes of <property-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| acceptVoidMethods | boolean | no |
Whether the resolver should call void methods. By default, void methods are not considered as possible candidates for message delivery. |
|
| property | name (no spaces) | no | The name of the message property used to select a method on the component. |
<property-entry-point-resolver...>子元素
| Name | Cardinality | Description |
|---|
方法入口解析器(Method entry point resolver)
传递信息到指定名字的方法中,这些元素能够被设置在model或者component中, 该model提供了默认值,
个别组件值允许被覆盖。它可以直接被使用或者作为解析器集合中的一部分,该解析器在集合中将轮流被使用直到一个成功为止。
Attributes of <method-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| acceptVoidMethods | boolean | no |
Whether the resolver should call void methods. By default, void methods are not considered as possible candidates for message delivery. |
<method-entry-point-resolver...>子元素
| Name | Cardinality | Description |
|---|---|---|
| include-entry-point | 1..* | A possible method for delivery. |
反射入口解析器(Reflection entry point resolver)
组件通过反射生成一个获选方法列表,这些元素能够被设置在model或者component中, 该model提供了默认值,
个别组件值允许被覆盖。它可以直接被使用或者作为解析器集合中的一部分,该解析器在集合中将轮流被使用直到一个成功为止。
Attributes of <reflection-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| acceptVoidMethods | boolean | no |
Whether the resolver should call void methods. By default, void methods are not considered as possible candidates for message delivery. |
<reflection-entry-point-resolver...>子元素
| Name | Cardinality | Description |
|---|---|---|
| exclude-object-methods | 0..1 |
If specified, methods in the Java Object interface are not included in the list of possible methods that can receive the message. |
| exclude-entry-point | 0..* | Explicitly excludes a named method from receiving the message. |
数组入口解析器(Array entry point resolver)
通过一个简单数组将信息传递给一个方法,这些元素能够被设置在model或者component中, 该model提供了默认值,
个别组件值允许被覆盖。它可以直接被使用或者作为解析器集合中的一部分,该解析器在集合中将轮流被使用直到一个成功为止。
Attributes of <array-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| acceptVoidMethods | boolean | no |
Whether the resolver should call void methods. By default, void methods are not considered as possible candidates for message delivery. |
|
| enableDiscovery | boolean | no | true |
If no method names are configured, attempts to discover the method to invoke based on the inbound message type. |
<array-entry-point-resolver...>子元素
| Name | Cardinality | Description |
|---|---|---|
| exclude-object-methods | 0..1 |
If specified, methods in the Java Object interface are not included in the list of possible methods that can receive the message. |
| exclude-entry-point | 0..* | Explicitly excludes a named method from receiving the message. |
| include-entry-point | 0..* | A possible method for delivery. |
没有参数的入口解析器(No arguments entry point resolver)
调用一个不带参数的方法(消息将不会被传递到组件)
Attributes of <no-arguments-entry-point-resolver...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| acceptVoidMethods | boolean | no |
Whether the resolver should call void methods. By default, void methods are not considered as possible candidates for message delivery. |
|
| enableDiscovery | boolean | no | true |
If no method names are configured, attempts to discover the method to invoke based on the inbound message type. |
<no-arguments-entry-point-resolver...>子元素
| Name | Cardinality | Description |
|---|---|---|
| exclude-object-methods | 0..1 |
If specified, methods in the Java Object interface are not included in the list of possible methods that can receive the message. |
| exclude-entry-point | 0..* | Explicitly excludes a named method from receiving the message. |
| include-entry-point | 0..* | A possible method for delivery. |
包含入口(Include entry point)
一个可能的传递方法。
Attributes of <include-entry-point...>
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| method | name | no | The name of the method. |

浙公网安备 33010602011771号