camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1660) A lite AOP feature in the DSL
Date Thu, 16 Jul 2009 06:14:33 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52834#action_52834
] 

Claus Ibsen commented on CAMEL-1660:
------------------------------------

trunk: 794544.

> A lite AOP feature in the DSL
> -----------------------------
>
>                 Key: CAMEL-1660
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1660
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: CAMEL-1660.patch
>
>
> We could use a lite AOP in the DSL, allowing you to easy invoke an endpoint before/after
the route.
> {code}
>                 from("direct:start")
>                     .aop().around("mock:before", "mock:after")
>                     .transform(constant("Bye World")).to("mock:result");
> {code}
> In the route above we have defined an AOP *around* where we invoke the before and after
endpoints.
> This DSL only supports setting the *before* and *after* as a endpoint URI. 
> We have the following DSL operations
> - before
> - after
> - around
> - afterFinally
> - aroundFinally
> The finally version will invoke the after in a finally block to ensure its always executed
even if an exception occurred.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message