Hi, > 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. >
I ask myself why interceptors should have something like a "state", because that is the only thing that could break thread safety. If you have complex logic in your interceptor and you want to minimize functional parameters when structuring your code, I recommend a new "method class" that takes your parameters and does the logic in a well structured way. By creating a new class for every call of the interceptor you save your thread safety. But yes, you're right: This should be documentated :-) Greetings, Marcus ------------------------------------------------------------------------------ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
