camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Edstrom <seij...@gmail.com>
Subject Re: [jira] Commented: (CAMEL-1823) doCatch(Predicate)
Date Sat, 16 Oct 2010 19:31:42 GMT
I really don't have any opinion - I agree it is a little wacky :)
I saw the Jira and thought, oh - that looks fun. 

It is just a few lines of code.

/je

On Oct 16, 2010, at 7:32 AM, Claus Ibsen (JIRA) wrote:

> 
>    [ https://issues.apache.org/activemq/browse/CAMEL-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62628#action_62628
] 
> 
> Claus Ibsen commented on CAMEL-1823:
> ------------------------------------
> 
> I think its a bit too wacky idea. 
> 
> doTry and doCatch is about exceptions as you would resemble this to try .. catch in Java.
> 
> Maybe we shouldn't try to make the framework more complicated that it is?
> I think we should mark this as wont fix.
> 
> And if in the future there is a compelling reason to pickup this again we can do this.
> 
> Any thoughts?
> 
>> doCatch(Predicate)
>> ------------------
>> 
>>                Key: CAMEL-1823
>>                URL: https://issues.apache.org/activemq/browse/CAMEL-1823
>>            Project: Apache Camel
>>         Issue Type: New Feature
>>         Components: camel-core
>>           Reporter: Claus Ibsen
>>           Assignee: Hadrian Zbarcea
>>            Fix For: Future
>> 
>>        Attachments: 0001-https-issues.apache.org-activemq-browse-CAMEL-1823.patch
>> 
>> 
>> As someone suggested on the user forum.
>> Letting {{doCatch}} be able to catch and react to a predicate as well. Currently
it *only* reacts when an exception has been thrown.
>> Letting it react to predicates as well will really set it high over its Java counter
part.
>> {code}
>> doTry()
>>   .beanRef("myBean")
>>   .to("activemq:queue:foo")
>> .doCatch(body().isNull())
>>   .to("log:foo?level=WARN")
>> .end()
>> {code}
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 

Johan Edstrom

joed@opennms.org

They that can give up essential liberty to purchase a little temporary safety, deserve neither
liberty nor safety.

Benjamin Franklin, Historical Review of Pennsylvania, 1759






Mime
View raw message