1 7 8 package java.beans.beancontext; 9 10 import java.beans.beancontext.BeanContextChild ; 11 import java.beans.beancontext.BeanContextEvent ; 12 13 import java.beans.beancontext.BeanContextServices ; 14 15 import java.util.Iterator ; 16 17 23 24 public class BeanContextServiceAvailableEvent extends BeanContextEvent { 25 26 31 public BeanContextServiceAvailableEvent(BeanContextServices bcs, Class sc) { 32 super((BeanContext )bcs); 33 34 serviceClass = sc; 35 } 36 37 41 public BeanContextServices getSourceAsBeanContextServices() { 42 return (BeanContextServices )getBeanContext(); 43 } 44 45 49 public Class getServiceClass() { return serviceClass; } 50 51 55 public Iterator getCurrentServiceSelectors() { 56 return ((BeanContextServices )getSource()).getCurrentServiceSelectors(serviceClass); 57 } 58 59 62 63 66 protected Class serviceClass; 67 } 68 69 70 71 72 | Popular Tags |