java.beans.beancontext
Class BeanContextServiceAvailableEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.beancontext.BeanContextEvent
          extended by java.beans.beancontext.BeanContextServiceAvailableEvent
All Implemented Interfaces:
Serializable

public class BeanContextServiceAvailableEvent
extends BeanContextEvent

Event fired when new services become available through a BeanContextServices.

Since:
JDK1.2
See Also:
BeanContextServicesListener, Serialized Form

Field Summary
protected  Class serviceClass
          The Class representing the service which is now available.
 
Fields inherited from class java.beans.beancontext.BeanContextEvent
propagatedFrom
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BeanContextServiceAvailableEvent(BeanContextServices services, Class serviceClass)
          Create a new service available event.
 
Method Summary
 Iterator getCurrentServiceSelectors()
          Get the current service selectors of the service class.
 Class getServiceClass()
          Get the newly available service class.
 BeanContextServices getSourceAsBeanContextServices()
          Get the BeanContextServices through which the new service is available.
 
Methods inherited from class java.beans.beancontext.BeanContextEvent
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serviceClass

protected Class serviceClass
The Class representing the service which is now available.

Constructor Detail

BeanContextServiceAvailableEvent

public BeanContextServiceAvailableEvent(BeanContextServices services,
                                        Class serviceClass)
Create a new service available event.

Parameters:
services - the BeanContextServices through which the service is available. This is also the source of the event.
serviceClass - the service class that is now available.
Method Detail

getCurrentServiceSelectors

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

Returns:
the current service selectors of the service class.

getServiceClass

public Class getServiceClass()
Get the newly available service class.

Returns:
the service class.

getSourceAsBeanContextServices

public BeanContextServices getSourceAsBeanContextServices()
Get the BeanContextServices through which the new service is available.

Returns:
the BeanContextServices through which the new service is available.