Package com.oorian
Interface OorianSessionListener
public interface OorianSessionListener
Listener interface for receiving session lifecycle events in the Oorian framework.
Implementations of this interface can be registered with OorianSessionMonitor
to receive notifications when sessions are created or destroyed. This is useful
for performing application-specific initialization or cleanup when users start or end
their sessions.
Usage:
OorianSessionMonitor.addListener(new OorianSessionListener() {
public void sessionCreated(OorianHttpSession session) {
// Initialize user-specific resources
}
public void sessionDestroyed(OorianHttpSession session) {
// Cleanup user-specific resources
}
});
- Since:
- 2007
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsessionCreated(OorianHttpSession session) Called when a new session is created.voidsessionDestroyed(OorianHttpSession session) Called when a session is about to be invalidated.
-
Method Details
-
sessionCreated
Called when a new session is created.- Parameters:
session- the newly created session
-
sessionDestroyed
Called when a session is about to be invalidated.- Parameters:
session- the session being destroyed
-