src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java

Print this page

        

*** 45,55 **** /** * Construct a <code>BeanContextAvailableServiceEvent</code>. * @param bcs The context in which the service has become available * @param sc A <code>Class</code> reference to the newly available service */ ! public BeanContextServiceAvailableEvent(BeanContextServices bcs, Class sc) { super((BeanContext)bcs); serviceClass = sc; } --- 45,55 ---- /** * Construct a <code>BeanContextAvailableServiceEvent</code>. * @param bcs The context in which the service has become available * @param sc A <code>Class</code> reference to the newly available service */ ! public BeanContextServiceAvailableEvent(BeanContextServices bcs, Class<?> sc) { super((BeanContext)bcs); serviceClass = sc; }
*** 63,86 **** /** * Gets the service class that is the subject of this notification. * @return A <code>Class</code> reference to the newly available service */ ! public Class getServiceClass() { return serviceClass; } /** * Gets the list of service dependent selectors. * @return the current selectors available from the service */ ! public Iterator getCurrentServiceSelectors() { return ((BeanContextServices)getSource()).getCurrentServiceSelectors(serviceClass); } /* * fields */ /** * A <code>Class</code> reference to the newly available service */ ! protected Class serviceClass; } --- 63,86 ---- /** * Gets the service class that is the subject of this notification. * @return A <code>Class</code> reference to the newly available service */ ! public Class<?> getServiceClass() { return serviceClass; } /** * Gets the list of service dependent selectors. * @return the current selectors available from the service */ ! public Iterator<?> getCurrentServiceSelectors() { return ((BeanContextServices)getSource()).getCurrentServiceSelectors(serviceClass); } /* * fields */ /** * A <code>Class</code> reference to the newly available service */ ! protected Class<?> serviceClass; }