> Previously we were on opposite sides of this debate:-)
>
> I think for simplicity we should have only stateless interceptors, any
> interceptor can store per-stack state in a the stack top in a hashmap.
>

This was the way I created the aspect stuff initially.  The interceptors
were tottaly statless.  Even intercetor config was not stored in the
interceptor.  The config was put at the top of the stack.

Advantage:
1 interceptor instance could be used for all stack instances. (less memory
usage?? not really, the config objects are created and put at the top of the
stack)

Disadvantages:
Hard to develop the interceptors and I think it lead to worse perfomance.  I
had to do a hashmap look up of the config every time it had to handle an
invocation.





-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to