1 22 package org.jboss.test.cluster.web.aop.jdk5; 23 24 import java.io.Serializable ; 25 import javax.servlet.http.HttpSessionBindingListener ; 26 27 31 @org.jboss.cache.aop.annotation.PojoCacheable 32 public class BindingListener implements HttpSessionBindingListener , Serializable 33 { 34 static final long serialVersionUID = -5110742075495287571L; 35 private boolean isValueBound = false; 36 private boolean isValueUnBound = false; 37 38 41 public BindingListener() 42 { 43 } 44 45 public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent) 46 { 47 setValueBound(); 48 } 49 50 public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent) 51 { 52 setValueUnBound(); 53 } 54 55 public void setValueBound() 56 { 57 isValueBound = true; 58 } 59 60 public boolean getValueBound() 61 { 62 return isValueBound; 63 } 64 65 public void setValueUnBound() 66 { 67 isValueUnBound = true; 68 } 69 70 public boolean getValueUnBound() 71 { 72 return isValueUnBound; 73 } 74 } 75 | Popular Tags |