That's true (about thread safety). I guess it's just that I usually avoid this threading threats at an interceptor level (or at least didn't needed it). In addition I never use DI to inject these. So is more a matter of personal approach I guess.
However, strictly to your original question, I guess is the Stripes owners need to clarify this. I was just scientifically curios about what you're trying to achieve :)
IMHO instantiating new objects is default behavior unless mentioned
other in the documentation. The fact that there is only one instance
means that interceptors must be implemented thread safe. To answer
your question: If a interceptor would be instantiated more than once
they could be injected using a DI framework and they'd thread safe by
default.

On Wed, Jun 24, 2009 at 8:43 AM, Cosmin Marginean<[email protected]> wrote:
  
Is there a reason why it should be instantiated more than once? :)
    
Hello list,
is there a reason why  a stripes interceptor is only instantiated once?
Thanks,
Richard


      
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

    



  

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to