Hi Richard, Thread safety isn't an issue here, as the interceptor isn't supposed to be stateful... why would it need to ?
Otoh, imagine you create an interceptor for each intercepted stage, this makes quite a lot of useless instance creations, makes your GC work harder etc. Cheers Remi 2009/6/24 Richard Hauswald <[email protected]>: > 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 >> > > > > -- > Richard Hauswald > Blog: http://tnfstacc.blogspot.com/ > LinkedIn: http://www.linkedin.com/in/richardhauswald > > ------------------------------------------------------------------------------ > _______________________________________________ > 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
