01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest.webapp.listeners;
06:
07: import com.tctest.webapp.servlets.InvalidatorServlet;
08:
09: import javax.servlet.http.HttpSessionAttributeListener;
10: import javax.servlet.http.HttpSessionBindingEvent;
11:
12: public class InvalidatorAttributeListener implements
13: HttpSessionAttributeListener {
14:
15: public InvalidatorAttributeListener() {
16: System.err.println("### AttributeListener() is here!!!");
17: }
18:
19: public void attributeAdded(
20: HttpSessionBindingEvent httpsessionbindingevent) {
21: InvalidatorServlet
22: .incrementCallCount("AttributeListener.attributeAdded");
23: System.err
24: .println("### AttributeListener.attributeAdded() is here!!!");
25: }
26:
27: public void attributeRemoved(
28: HttpSessionBindingEvent httpsessionbindingevent) {
29: System.err
30: .println("### AttributeListener.attributeRemoved() is here!!!");
31: InvalidatorServlet
32: .incrementCallCount("AttributeListener.attributeRemoved");
33: }
34:
35: public void attributeReplaced(
36: HttpSessionBindingEvent httpsessionbindingevent) {
37: System.err
38: .println("### AttributeListener.attributeReplaced() is here!!!");
39: InvalidatorServlet
40: .incrementCallCount("AttributeListener.attributeReplaced");
41: }
42: }
|