Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans.beancontext

Class BeanContextServiceAvailableEvent

java.lang.Object
|
+--java.util.EventObject
   |
   +--java.beans.beancontext.BeanContextEvent
      |
      +--java.beans.beancontext.BeanContextServiceAvailableEvent


public class BeanContextServiceAvailableEvent

extends BeanContextEvent

Event fired when new services become available through a BeanContextServices.

Since:Author:See Also:

Field Summary

java.lang.ClassserviceClass

The Class representing the service which is now available.

Constructor Summary

BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass)

Create a new service available event.

Method Summary

java.util.IteratorgetCurrentServiceSelectors()

Get the current service selectors of the service class.
java.lang.ClassgetServiceClass()

Get the newly available service class.
java.beans.beancontext.BeanContextServicesgetSourceAsBeanContextServices()

Get the BeanContextServices through which the new service is available.

Field Details

serviceClass

protected Class serviceClass

The Class representing the service which is now available.


Constructor Details

BeanContextServiceAvailableEvent

public BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass)

Create a new service available event.

Parameters:


Method Details

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors()

Get the current service selectors of the service class. This is identical to getSourceAsBeanContextServices().getCurrentServiceSelectors(getServiceClass())

Returns:


getServiceClass

public Class getServiceClass()

Get the newly available service class.

Returns:


getSourceAsBeanContextServices

public BeanContextServices getSourceAsBeanContextServices()

Get the BeanContextServices through which the new service is available.

Returns: