1 7 8 package java.beans.beancontext; 9 10 import java.util.Iterator ; 11 12 import java.util.TooManyListenersException ; 13 14 import java.beans.beancontext.BeanContext ; 15 16 import java.beans.beancontext.BeanContextServiceProvider ; 17 18 import java.beans.beancontext.BeanContextServicesListener ; 19 20 21 27 public interface BeanContextServices extends BeanContext , BeanContextServicesListener { 28 29 46 boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider); 47 48 67 void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow); 68 69 75 boolean hasService(Class serviceClass); 76 77 97 Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException ; 98 99 108 void releaseService(BeanContextChild child, Object requestor, Object service); 109 110 115 Iterator getCurrentServiceClasses(); 116 117 126 Iterator getCurrentServiceSelectors(Class serviceClass); 127 128 132 void addBeanContextServicesListener(BeanContextServicesListener bcsl); 133 134 140 void removeBeanContextServicesListener(BeanContextServicesListener bcsl); 141 } 142 | Popular Tags |