uk.ac.ebi.intenz.webapp.utilities
Class EntryLockListener

java.lang.Object
  extended by uk.ac.ebi.intenz.webapp.utilities.EntryLockListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionBindingListener

public class EntryLockListener
extends Object
implements javax.servlet.http.HttpSessionBindingListener

This class makes it possible to bind objects of this class to the session, which will be notified if they are binded or unbinded from a session.

The purpose of this class is to close connections properly, when the session is invalidated or timed out.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:09 $
Author:
Michael Darsow

Constructor Summary
EntryLockListener(EntryLockSingleton els)
          Store reference to the EntryLockSingleton object.
 
Method Summary
 void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
          Stores the user of this session.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
          Invalidate all locks of the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryLockListener

public EntryLockListener(EntryLockSingleton els)
Store reference to the EntryLockSingleton object.

Parameters:
els - The EntryLockSingleton object.
Method Detail

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Stores the user of this session.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
event - HttpSessionBindingEvent object.

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Invalidate all locks of the user.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
event - HttpSessionBindingEvent object.


Copyright © 2013 EMBL-EBI. All Rights Reserved.