[
http://www.stripesframework.org/jira/browse/STS-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11167#action_11167
]
Christian Poitras commented on STS-429:
---------------------------------------
Thread creation:
You're right. Threads should never be created if time is negative. This is a
"bug" that I didn't correct since @Session was not used and the current
processing stays fast.
I'll correct this now.
Remove serializable():
I prefer not to test "object instanceof java.io.Serializable" since it doesn't
guaranty that object is really serializable. For example, if a List contains
non-serializable classes, the test will not work. Even worse, I use iBATIS for
database access, and their lazy classes does not implement serializable. My
classes respect serializable specification so they implement
java.io.Serializable. To prevent problems, the interceptor would need to check
dependencies serializability. This is slow and I think the programmer is the
best person to know if it's serializable.
Webflow mechanism:
I agree. This is a very good idea, but I don't find a good way to program this
right now. I really like the Seam "Conversation context". If you can give me a
pointer to program such a thing, I be glad to add it to the interceptor!
To give you an additional info on how it will work in practice. If you specify
"@Session(maxTime=5) private field myField", the object will stay in session
for 5 minutes. If the user makes a request on the action bean having myField
after 3 minutes, the object will stay in session for another 5 minutes (total 8
minutes). The object will stay in session as long as the user makes requests on
the action bean (object can stay in session forever if the user doesn't sleep).
I admit this is flawed, but I think it's a good start.
Thanks for the suggestions!
> @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
> 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