You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/05/10 10:15:44 UTC
[jira] Created: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Add class as component for invoking beans but based on FQN classnames
---------------------------------------------------------------------
Key: CAMEL-2705
URL: https://issues.apache.org/activemq/browse/CAMEL-2705
Project: Apache Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Priority: Minor
Fix For: 2.4.0
[10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
[10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
[10:12] <davsclaus> ah yeah that is clever
[10:12] <davsclaus> jstrachan i like that one
[10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
[10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2705.
--------------------------------
Resolution: Fixed
Added wiki documentation as well.
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Max Ullinger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60018#action_60018 ]
Max Ullinger commented on CAMEL-2705:
-------------------------------------
Hi
Nice idea there.
One thing that makes Camel hard to use for us right now is the need to have beans in a registry (we will probably use camel as a "workflow" engine with lots of calls to many business logic pojos). Currently evaluating.
It would be great to have a class component that instantiates an action for this call.
It would be even better if the instantiated object could be configured.
e.g. <to uri="class:org.acme.SomeBean?config1=fast"/>
would set the field "config1" to the value "fast" when the class is instantiated. -> a little like Spring DI
That would definately make Camel much easier to use.
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-2705:
----------------------------------
Assignee: Claus Ibsen
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60032#action_60032 ]
Claus Ibsen commented on CAMEL-2705:
------------------------------------
Yeah the {{class}} gives us the chance to support setting properties on the instance as well.
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60033#action_60033 ]
Claus Ibsen commented on CAMEL-2705:
------------------------------------
There is now a new {{class}} component in Camel
trunk: 954036.
It got that little DI stuff as well. You can use the # notation to lookup refs as well.
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2705) Add class as component for invoking
beans but based on FQN classnames
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59263#action_59263 ]
Claus Ibsen commented on CAMEL-2705:
------------------------------------
trunk: 942696.
You can now specify a FQN on the bean component: {{bean:org.acme.SomeBean}}
Having a explicit {{class}} scheme makes it stand out even more
> Add class as component for invoking beans but based on FQN classnames
> ---------------------------------------------------------------------
>
> Key: CAMEL-2705
> URL: https://issues.apache.org/activemq/browse/CAMEL-2705
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> [10:09] <jstrachan> wonder to avoid using a string as a name, then as a class, we use a class uri?
> [10:09] <jstrachan> <to uri="class:org.acme.SomeBean"/>
> [10:12] <davsclaus> ah yeah that is clever
> [10:12] <davsclaus> jstrachan i like that one
> [10:13] <jstrachan> might be rare but some folks might use a class name as a name and you could get a clash I guess
> [10:14] <davsclaus> yeah and by class it spell out that its resolving a class and not looking up a bean name
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.