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/10/22 14:38:40 UTC

[jira] Commented: (CAMEL-3266) support the Ordered Interceptor Strategy configured in spring

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

Claus Ibsen commented on CAMEL-3266:
------------------------------------

The fix should be in DefaultChannel in camel-core. Then it applies to any DSL (Java, Spring, Scala, Groovy etc.).

But yes its just a matter of sorting the interceptors using the OrderedComparator.

> support the Ordered Interceptor Strategy configured in spring
> -------------------------------------------------------------
>
>                 Key: CAMEL-3266
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3266
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: AbstractCamelContextFactoryBean.java
>
>
> Now spring support user to configure their own Interceptor Strategy, but it cannot specifiy the wrap order of the interceptor strategy.
> So we need to support a feature to let the user define the interceptor's order:
> user can choice to implement the org.apache.camel.util.Ordered interface for the customed interceptor strategy ;
> if the interceptor strategy does support a Ordered  interface, the camel context will loaded the interceptor-strategies and wrapper the process by the order;
> For example if I write two interceptor-strategy(A , B), if A's order is 0,
>  and B's order is 1. the camel will always wrapper the processor as
>  {A{B{Processor}}.

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