[ https://issues.apache.org/activemq/browse/CAMEL-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1660: ------------------------------- Attachment: CAMEL-1660.patch The patch with this implementation > 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.