1 7 8 package java.beans.beancontext; 9 10 import java.beans.beancontext.BeanContextEvent ; 11 12 import java.beans.beancontext.BeanContextServices ; 13 14 21 public class BeanContextServiceRevokedEvent extends BeanContextEvent { 22 23 30 public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class sc, boolean invalidate) { 31 super((BeanContext )bcs); 32 33 serviceClass = sc; 34 invalidateRefs = invalidate; 35 } 36 37 42 public BeanContextServices getSourceAsBeanContextServices() { 43 return (BeanContextServices )getBeanContext(); 44 } 45 46 51 public Class getServiceClass() { return serviceClass; } 52 53 60 public boolean isServiceClass(Class service) { 61 return serviceClass.equals(service); 62 } 63 64 69 public boolean isCurrentServiceInvalidNow() { return invalidateRefs; } 70 71 74 75 78 protected Class serviceClass; 79 private boolean invalidateRefs; 80 } 81 82 83 84 85 86 87 | Popular Tags |