java.beans.beancontext
Class BeanContextServiceAvailableEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.beans.beancontext.BeanContextEvent
|
+--java.beans.beancontext.BeanContextServiceAvailableEvent
Event fired when new services become available through a BeanContextServices
.
Since:Author:See Also:
serviceClass
protected Class serviceClass
The Class
representing the service which is now
available.
BeanContextServiceAvailableEvent
public BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass)
Create a new service available event.
Parameters:
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:
getSourceAsBeanContextServices
public BeanContextServices getSourceAsBeanContextServices()
Get the BeanContextServices
through which the new service is available.
Returns:
- the
BeanContextServices
through which the
new service is available.
BeanContextServices
.