java.beans.beancontext
Class BeanContextServiceAvailableEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent 
          extended by java.beans.beancontext.BeanContextServiceAvailableEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class BeanContextServiceAvailableEvent
extends BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent

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

See Also:
Serialized Form

Field Summary
protected  Class sample code for java.lang.Class definition code for java.lang.Class serviceClass sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.serviceClass definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.serviceClass
          A Class reference to the newly available service
 
Fields inherited from class java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent
propagatedFrom sample code for java.beans.beancontext.BeanContextEvent.propagatedFrom definition code for java.beans.beancontext.BeanContextEvent.propagatedFrom
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
BeanContextServiceAvailableEvent sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices, java.lang.Class) definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices, java.lang.Class) (BeanContextServices sample code for java.beans.beancontext.BeanContextServices definition code for java.beans.beancontext.BeanContextServices  bcs, Class sample code for java.lang.Class definition code for java.lang.Class  sc)
          Construct a BeanContextAvailableServiceEvent.
 
Method Summary
 Iterator sample code for java.util.Iterator definition code for java.util.Iterator getCurrentServiceSelectors sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getCurrentServiceSelectors() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getCurrentServiceSelectors() ()
          Gets the list of service dependent selectors.
 Class sample code for java.lang.Class definition code for java.lang.Class getServiceClass sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getServiceClass() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getServiceClass() ()
          Gets the service class that is the subject of this notification.
 BeanContextServices sample code for java.beans.beancontext.BeanContextServices definition code for java.beans.beancontext.BeanContextServices getSourceAsBeanContextServices sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getSourceAsBeanContextServices() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getSourceAsBeanContextServices() ()
          Gets the source as a reference of type BeanContextServices.
 
Methods inherited from class java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent
getBeanContext sample code for java.beans.beancontext.BeanContextEvent.getBeanContext() definition code for java.beans.beancontext.BeanContextEvent.getBeanContext() , getPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() definition code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() , isPropagated sample code for java.beans.beancontext.BeanContextEvent.isPropagated() definition code for java.beans.beancontext.BeanContextEvent.isPropagated() , setPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext)
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

serviceClass sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.serviceClass

protected Class sample code for java.lang.Class definition code for java.lang.Class  serviceClass
A Class reference to the newly available service

Constructor Detail

BeanContextServiceAvailableEvent sample code for java.beans.beancontext.BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices, java.lang.Class) definition code for java.beans.beancontext.BeanContextServiceAvailableEvent(java.beans.beancontext.BeanContextServices, java.lang.Class)

public BeanContextServiceAvailableEvent(BeanContextServices sample code for java.beans.beancontext.BeanContextServices definition code for java.beans.beancontext.BeanContextServices  bcs,
                                        Class sample code for java.lang.Class definition code for java.lang.Class  sc)
Construct a BeanContextAvailableServiceEvent.

Parameters:
bcs - The context in which the service has become available
sc - A Class reference to the newly available service
Method Detail

getSourceAsBeanContextServices sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getSourceAsBeanContextServices() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getSourceAsBeanContextServices()

public BeanContextServices sample code for java.beans.beancontext.BeanContextServices definition code for java.beans.beancontext.BeanContextServices  getSourceAsBeanContextServices()
Gets the source as a reference of type BeanContextServices.

Returns:
The context in which the service has become available

getServiceClass sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getServiceClass() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getServiceClass()

public Class sample code for java.lang.Class definition code for java.lang.Class  getServiceClass()
Gets the service class that is the subject of this notification.

Returns:
A Class reference to the newly available service

getCurrentServiceSelectors sample code for java.beans.beancontext.BeanContextServiceAvailableEvent.getCurrentServiceSelectors() definition code for java.beans.beancontext.BeanContextServiceAvailableEvent.getCurrentServiceSelectors()

public Iterator sample code for java.util.Iterator definition code for java.util.Iterator  getCurrentServiceSelectors()
Gets the list of service dependent selectors.

Returns:
the current selectors available from the service