java.beans.beancontext
Class BeanContextServiceRevokedEvent

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.BeanContextServiceRevokedEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

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

This event type is used by the BeanContextServiceRevokedListener in order to identify the service being revoked.

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.BeanContextServiceRevokedEvent.serviceClass definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.serviceClass
          A Class reference to the service that is being revoked.
 
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
BeanContextServiceRevokedEvent sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.BeanContextServiceRevokedEvent(java.beans.beancontext.BeanContextServices, java.lang.Class, boolean) definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.BeanContextServiceRevokedEvent(java.beans.beancontext.BeanContextServices, java.lang.Class, boolean) (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, boolean invalidate)
          Construct a BeanContextServiceEvent.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class getServiceClass sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.getServiceClass() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.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.BeanContextServiceRevokedEvent.getSourceAsBeanContextServices() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.getSourceAsBeanContextServices() ()
          Gets the source as a reference of type BeanContextServices
 boolean isCurrentServiceInvalidNow sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.isCurrentServiceInvalidNow() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.isCurrentServiceInvalidNow() ()
          Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.
 boolean isServiceClass sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.isServiceClass(java.lang.Class) definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.isServiceClass(java.lang.Class) (Class sample code for java.lang.Class definition code for java.lang.Class  service)
          Checks this event to determine whether or not the service being revoked is of a particular class.
 
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.BeanContextServiceRevokedEvent.serviceClass

protected Class sample code for java.lang.Class definition code for java.lang.Class  serviceClass
A Class reference to the service that is being revoked.

Constructor Detail

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

public BeanContextServiceRevokedEvent(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,
                                      boolean invalidate)
Construct a BeanContextServiceEvent.

Parameters:
bcs - the BeanContextServices from which this service is being revoked
sc - the service that is being revoked
invalidate - true for immediate revocation
Method Detail

getSourceAsBeanContextServices sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.getSourceAsBeanContextServices() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.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 BeanContextServices from which this service is being revoked

getServiceClass sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.getServiceClass() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.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 service that is being revoked

isServiceClass sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.isServiceClass(java.lang.Class) definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.isServiceClass(java.lang.Class)

public boolean isServiceClass(Class sample code for java.lang.Class definition code for java.lang.Class  service)
Checks this event to determine whether or not the service being revoked is of a particular class.

Parameters:
service - the service of interest (should be non-null)
Returns:
true if the service being revoked is of the same class as the specified service

isCurrentServiceInvalidNow sample code for java.beans.beancontext.BeanContextServiceRevokedEvent.isCurrentServiceInvalidNow() definition code for java.beans.beancontext.BeanContextServiceRevokedEvent.isCurrentServiceInvalidNow()

public boolean isCurrentServiceInvalidNow()
Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.

Returns:
true if current service is being forcibly revoked