Jochen Kemnade created TAP5-2207:
------------------------------------

             Summary: It should be possible to be notified of session creations 
and invalidations
                 Key: TAP5-2207
                 URL: https://issues.apache.org/jira/browse/TAP5-2207
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.3, 5.4
            Reporter: Jochen Kemnade
            Priority: Minor


There are cases when it would be very helpful if one could subscribe to the 
creations and invalidations of sessions.
* Clear parts of a cache when a session is no longer valid
* Show how many users are currently using the application

Something like a `SessionStateHub` could be added, that is triggered when a 
`SessionImpl` is created or invalidated. Then, there should be methods to 
register listeners, e.g. `addSessionCreatedListener`,  
`addSessionWillBeInvalidatedListener`, `addSessionInvalidatedListener`.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to