The only way I could see to accomplish your goal, is to implement an outside
IModeInterceptorsSelector  that used xml to match what your interceptors
should apply to.
I wager this would not be appropriate performance wise for some workloads
unless you add some form of caching of the match list.

Ayende had an article on using that interface awhile back:

http://ayende.com/Blog/archive/2008/10/05/windsor-imodelinterceptersselector.aspx


On Tue, Apr 7, 2009 at 9:06 AM, Alessandro Riolo <[email protected]
> wrote:

>
> Dears all,
>
> At the moment I configure my interceptors on an xml configuration file
> or with the fluent interface.
>
> In example in the xml config file they may look like this
>
>        <component
>        id="..
>        >
>                <interceptors>
>                        <interceptor>${LogInterceptor}</interceptor>
>                </interceptors>
>        </component>
>
> I was thinking that it could be useful to be able to configure
> interceptors in a different way, in example:
>
>        <interceptors>
>                <interceptor>${LogInterceptor}
>                        <component
>                        id="..
>                        >
>                        </component>
>                        <component
>                        service="..
>                        >
>                        </component>
>                </interceptor>
>        </interceptors>
>
> The reason being we may register the components with the fluent
> interface, and then using the xml config file to decide when to add an
> interceptor for a given component (benefit would be that in example we
> wish to enable a very extensive logging only some times, and we wish
> our customers/support people to be able to toggle that on just with
> some small change on the config file).
>
> Is this already supported in any way, perhaps with a different syntax?
>
> Kind regards,
>
> --
> ale
> http://ale.riolo.co.uk
>
> >
>


-- 
Ryan Svihla
Systems Developer
Farm Bureau Bank

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to