camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xuhongbo (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3266) support the Ordered Interceptor Strategy configured in spring
Date Fri, 22 Oct 2010 10:46:40 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

xuhongbo updated CAMEL-3266:
----------------------------

    Attachment: AbstractCamelContextFactoryBean.java

here is a patch for it ; just a line of code:

      //==============================support ordered interceptor strategy=============================
        Collections.sort(getContext().getInterceptStrategies(), new 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
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         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.


Mime
View raw message