[ 
http://www.stripesframework.org/jira/browse/STS-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11195#action_11195
 ] 

Vadim Gerassimov commented on STS-429:
--------------------------------------

Hello, Christian

To some extent it allows to specify object life cycle in session. However, life 
cycle could be optimized.

Example. We have ActionBean1 and ActionBean2. Both action beans have method 
that handles event "complete". Programmer wants to automatically remove object 
from session if and only if ActionBean1.complete event is occurred. Current 
implementation if I understand correctly will remove from session even if 
ActionBean2.complete event is occurred. 

What about adding such optional feature as:
@Session(remove="/ActionBean1.action#complete"). 
It would more flexible and it is workable at least if programmer uses 
@UrlBinding with ActionBean (in my project I prefer this approach - it is more 
refactoring-friendly). 


> @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, session-plugin5.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

Reply via email to