[
https://issues.apache.org/jira/browse/CAMEL-19912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17768669#comment-17768669
]
Claus Ibsen edited comment on CAMEL-19912 at 9/25/23 12:32 PM:
---------------------------------------------------------------
If factory-method is set then constructor arguments are used as values for
invoking the factorty method
{code}
- beans:
- name: orderService
type: "com.foo.OrderService"
factoryMethod: "createOrder"
constructors:
0: "true"
1: "#bean:office"
{code}
was (Author: davsclaus):
If factory-method is set then constructor arguments are used as values for
invoking the factorty method
- beans:
- name: orderService
type: "com.foo.OrderService"
factoryMethod: "createOrder"
constructors:
0: "true"
1: "#bean:office"
> camel-core-model - Add factory-method parameter
> -----------------------------------------------
>
> Key: CAMEL-19912
> URL: https://issues.apache.org/jira/browse/CAMEL-19912
> Project: Camel
> Issue Type: Improvement
> Components: camel-core-model
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.1.0
>
>
> So its easier to declare beans that are created via a static factory method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)