Ever since tahoe I have been thinking about MBean interceptor stack configuration...
very cool when we get it up and working.
One thing I was thinking would be nice would be allow passing init arguments to the
interceptor, similar to servlet init params. As well as a name for the interceptor.
This would allow for generic interceptors to be written that change based on
configuration. The name would be used primarily in logging to identifiy which one was
which.
I can not think of a good example at the moment, but the functionality seems simple to
implement and will just open the door for different usage.
Consider the following...
<mbean-interceptor-set name="example-set">
<mbean-interceptor name="interceptor-a" class="some.package.MyInterceptor">
<mbean-interceptor-param name="Flavor" value="Apple"/>
</mbean-interceptor>
<mbean-interceptor name="interceptor-b" class="some.package.MyInterceptor">
<mbean-interceptor-param name="Flavor" value="Orange"/>
</mbean-interceptor>
</mbean-interceptor-set>
<mbean class="some.package.MyService" name="MyService" interceptor-set="example-set">
<!-- whatever -->
</mbean>
Food for thought.
--jason
* * *
View thread online: http://jboss.org/forums/thread.jsp?forum=66&thread=13523
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development