java.beans.beancontext

Interface BeanContextServicesListener

All Superinterfaces:
BeanContextServiceRevokedListener, EventListener
Known Subinterfaces:
BeanContextServices
Known Implementing Classes:
BeanContextChildSupport, BeanContextServicesSupport, BeanContextSupport

public interface BeanContextServicesListener
extends BeanContextServiceRevokedListener

The listener interface for receiving BeanContextServiceAvailableEvent objects. A class that is interested in processing a BeanContextServiceAvailableEvent implements this interface.

Method Summary

void
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
The service named has been registered.

Methods inherited from interface java.beans.beancontext.BeanContextServiceRevokedListener

serviceRevoked

Method Details

serviceAvailable

public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
The service named has been registered. getService requests for this service may now be made.
Parameters:
bcsae - the BeanContextServiceAvailableEvent
Usages and Demos :

View More Examples of serviceAvailable(BeanContextServiceAvailableEvent bcsae)
   1: import java.beans.beancontext.BeanContextServices;
   2: import java.beans.beancontext.BeanContextServicesListener;
   3: import java.io.IOException;
   4:         ...
   5: 
   6:     public void addBeanContextServicesListener(BeanContextServicesListener bcsl) {
   7:         if (!_bcsListeners.contains(bcsl)) {
   8:         ...
   9: 
  10:     public void removeBeanContextServicesListener(BeanContextServicesListener bcsl) {
  11:         _bcsListeners.remove(bcsl);
  12:         ...
  13:         for (BeanContextServicesListener bcsl : _bcsListeners) {
  14:             bcsl.serviceAvailable(bcsae);

View Full Code Here