[jboss-dev-forums] [Design of JBossCache] - Re: Designing Habanero - Configuration changes
manik.surtani@jboss.com
do-not-reply at jboss.com
Thu Sep 21 06:26:31 EDT 2006
"galder.zamarreno at jboss.com" wrote :
| Manik, is there any reason why you'd want to only add/remove interceptors
| and not change the core interceptor chain? Is it to avoid misusage?
|
This is not out of choice. :-)
We have an XML config block that currently builds an interceptor chain based on config options. In the same XML config, adding more custom interceptors before/after this chain is easy, but to modify the chain is hard - imagine some XML element like:
| <suppress-interceptor interceptor="org.jboss.cache.TxInterceptor" />
|
or
| <replace-interceptor position="2" interceptor="my.custom.TxInterceptor" />
|
Very ungainly, and presumes that the user knows what sort of chain will be generated.
And, as you said, open to a lot of breakage. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973207#3973207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973207
More information about the jboss-dev-forums
mailing list