[
http://www.stripesframework.org/jira/browse/STS-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11099#action_11099
]
Christian Poitras commented on STS-429:
---------------------------------------
I'm not sure if I understand your question, but I'll try to answer.
Each field annotated do create a Thread instance. If the maxTime is negative
(it's negative by default) the thread will stop very quickly. It's the best way
I found to let the object remove itself from session. I could scan the session,
but doing this on each request could overload the server. I could scan the
session each x minutes, but I would need to keep track of the session ids I
scan.
The threads do take some cpu time (considering each field would be annotated
with a positive maxTime), but the check itself it very quick. I guess the scan
of request parameters if a greater bottleneck. So Tim, if you add this to
Stripes trunk, please don't include this interceptor in the core!
I hope this answers your question.
> @Session annotation to save and restore fields automatically
> ------------------------------------------------------------
>
> Key: STS-429
> URL: http://www.stripesframework.org/jira/browse/STS-429
> Project: Stripes
> Issue Type: New Feature
> Reporter: Christian Poitras
> Assignee: Tim Fennell
> Priority: Minor
> Attachments: session-plugin.jar, session-plugin2.jar,
> session-plugin3.jar, session-plugin4.jar
>
>
> I've added a @Session annotation and an interceptor that automatically saves
> annotated fields in session and restores the fields on following request.
> This could be a great add-on to Stripes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development