FileDocCategorySizeDatePackage
BeanContextServiceAvailableEvent.javaAPI DocJava SE 5 API1938Fri Aug 26 14:56:58 BST 2005java.beans.beancontext

BeanContextServiceAvailableEvent

public class BeanContextServiceAvailableEvent extends BeanContextEvent

This event type is used by the BeanContextServicesListener in order to identify the service being registered.

Fields Summary
protected Class
serviceClass
A Class reference to the newly available service
Constructors Summary
public BeanContextServiceAvailableEvent(BeanContextServices bcs, Class sc)
Construct a BeanContextAvailableServiceEvent.

param
bcs The context in which the service has become available
param
sc A Class reference to the newly available service

	super((BeanContext)bcs);

	serviceClass = sc;
    
Methods Summary
public java.util.IteratorgetCurrentServiceSelectors()
Gets the list of service dependent selectors.

return
the current selectors available from the service

    	return ((BeanContextServices)getSource()).getCurrentServiceSelectors(serviceClass);
    
public java.lang.ClassgetServiceClass()
Gets the service class that is the subject of this notification.

return
A Class reference to the newly available service

 return serviceClass; 
public java.beans.beancontext.BeanContextServicesgetSourceAsBeanContextServices()
Gets the source as a reference of type BeanContextServices.

return
The context in which the service has become available

	return (BeanContextServices)getBeanContext();